Réponse apportée
Is it not possible to extract a function from code in MATLAB?
The Release Notes indicate the ability to automatically convert selected code into a function was introduced in release R2021b.

presque 3 ans il y a | 2

Réponse apportée
Find least frequent value in an array
H = [1 1 2 2 3 3 4 5 5 5 6] [counts, values] = histcounts(H, [unique(H) Inf]) allMinimumCountsLocations = counts == min(counts...

presque 3 ans il y a | 1

Réponse apportée
How to obtain shortest paths with parents in a weighted directed graph?
You may want to use the shortestpath or shortestpathtree functions instead of distances for this use case.

presque 3 ans il y a | 2

Réponse apportée
Solve symbolic equation for a variable which itself is a function of time
If you're trying to solve a differential equation, try using dsolve instead of solve.

presque 3 ans il y a | 0

Réponse apportée
What's wrong in this function
You define your function as follows (with a break added so we can see all the input arguments on one line.) function ELS_Price=...

presque 3 ans il y a | 0

Réponse apportée
How do I convert my .m file into a .exe file?
Another alternative, one that didn't exist when this question was originally asked ten years ago, is to have your users use MATL...

presque 3 ans il y a | 1

Réponse apportée
Matlab creates same input values every time? Why?
Others have told you how to get the numbers to not repeat after startup. But to answer your "Why?" question, this is expected be...

presque 3 ans il y a | 1

Réponse apportée
Using an anonymous function handle as input into another function handle
And then I want to use omega as input to the next function. What specifically do you mean "as input to the next function"? How...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Invalid Activation Key (510). so what is the activation number?
See this Answers post for more information about that error and how to resolve it.

presque 3 ans il y a | 0

Réponse apportée
Data analysis - How to recognize local peaks/different areas?
You can use the ischange function to identify where the mean of the data changes. Using the same approach for generating sample ...

presque 3 ans il y a | 0

Réponse apportée
quadruple summation using function
You could use implicit expansion to avoid having to create quite so many large arrays. It's not as fast as the case that exploit...

presque 3 ans il y a | 1

Réponse apportée
What is Mathworks Service Host?
See this Answers post.

presque 3 ans il y a | 0

Réponse apportée
dsolve function is not working
You've written your own dsolve.m file that's taking precedence over the dsolve function that is part of Symbolic Math Toolbox. I...

presque 3 ans il y a | 0

Réponse apportée
Requesting theoretical support for interdigital capacitor function
Do the reference books/papers in the References section of the documentation page for the interdigitalCapacitor function not inc...

presque 3 ans il y a | 0

Réponse apportée
Random sequency generation at specific numbers
Replicate the vector so it has more elements than you want. Then use the two input form of randperm to select the desired number...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
xtick label font change affect ytick label font
Changing the FontSize property of an axes does affect the font size of both the X and Y rulers. If you get the ruler you want to...

presque 3 ans il y a | 0

Réponse apportée
I want to gererate pseudorandom integers using randi function, however I want have empty cells between the integers.
Numeric arrays in MATLAB can't have "holes". Perhaps if you describe in more detail how you're hoping to use this type of array...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Mackey Glass equation and ddesd
So in these equations you're using the Equation 2 form where is 2, is 1, n is 9.65, is 2, and is 1? If the density of the c...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Matlab License File Precedence
That is what the MATLAB License Search Path section on this documentation page states.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to doc() a command which is overloaded by multiple toolboxes
The evaluate function in both those products (and a few others) is a method of different types of objects. which -all evaluate ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I can not open spm12 with MATLAB
SPM12 is not a MathWorks product and so I don't have any experience with it, but based just on the error message and the URL of ...

presque 3 ans il y a | 1

Réponse apportée
Run Section funcionality isn't working
In order to run MATLAB code in a code file, the name of that file must satisfy the requirements given by the isvarname function....

presque 3 ans il y a | 1

| A accepté

Réponse apportée
S-Function support for future releases
The Release Notes for Simulink Coder in release R2022b includes an entry that seems to be relevant to this question. The suggest...

presque 3 ans il y a | 0

Réponse apportée
remove numbers of an matrix from another matrix
Call setdiff with the 'rows' input.

presque 3 ans il y a | 0

Réponse apportée
How can one debug mex code called by fminsearch?
What happened after you handled the SIGSEGV and SIGBUS signals as described in the last section, "Debug MEX with JVM", on this d...

presque 3 ans il y a | 0

Réponse apportée
my optimization toolbox does not open
If you're referring to optimtool, it was removed in release R2021a. For a graphical interface to the Optimization Toolbox functi...

presque 3 ans il y a | 1

Réponse apportée
how change order color legend?
If you're using release R2023b or later, there's a new legend property introduced in R2023b that may be of interest to you. Chan...

presque 3 ans il y a | 0

Réponse apportée
Moving skewness/kurtosis/rms/autocorrelation for time series. Fast Implementation.
Currently MATLAB does not have any functions for computing the moving skewness, kurtosis, rms, or autocorrelation. For a list of...

presque 3 ans il y a | 0

Réponse apportée
How to take a value between two values
If you hover over the underlined <= operators in the code in the MATLAB Editor, you will see a Code Analyzer message explaining ...

presque 3 ans il y a | 0

Réponse apportée
When is the official release for MATLAB for Silicon Macs?
It is currently: datetime('now', TimeZone="local", Format = "dd-MMM-yyyy hh:mm:ss a z") and the Release Notes indicate that re...

presque 3 ans il y a | 0

Charger plus