Answered
Lack of function_handle arrays
No, this is not a bug. In the past, prior to release R14, you could in fact have had an array of function handles. The decision ...

2 years ago | 0

Answered
"getLabels" supporting function missing from SELDnet example
If you open the example in MATLAB Online or in MATLAB on your machine, the directory that MATLAB changes to contains the Live Sc...

2 years ago | 0

| accepted

Answered
i want to create a square array of 1048560x1048560 but i am getting an Error using zeros Requested 1048560x1048560 (8191.8GB) array exceeds maximum array size preference.
@Simar wrote, in part: By default, MATLAB has a maximum array size limit to prevent excessive memory usage and potential system...

2 years ago | 2

Answered
How to display x values for each iteration in fmincon?
Create an output function and specify it in your options structure as shown in the example on the page that is the first link fr...

2 years ago | 1

Answered
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.

2 years ago | 2

Answered
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...

2 years ago | 1

Answered
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.

2 years ago | 2

Answered
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.

2 years ago | 0

Answered
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=...

2 years ago | 0

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 1

Answered
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...

2 years ago | 0

| accepted

Answered
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.

2 years ago | 0

Answered
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 ...

2 years ago | 0

Answered
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...

2 years ago | 1

Answered
What is Mathworks Service Host?
See this Answers post.

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 0

| accepted

Answered
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...

2 years ago | 0

| accepted

Answered
Matlab License File Precedence
That is what the MATLAB License Search Path section on this documentation page states.

2 years ago | 0

| accepted

Answered
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 ...

2 years ago | 0

| accepted

Answered
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 ...

2 years ago | 1

Answered
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....

2 years ago | 1

| accepted

Answered
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...

2 years ago | 0

Answered
remove numbers of an matrix from another matrix
Call setdiff with the 'rows' input.

2 years ago | 0

Answered
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...

2 years ago | 0

Answered
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...

2 years ago | 1

Load more