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

casi 3 años hace | 1

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

casi 3 años hace | 2

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 1

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

Respondida
lambr0 and zeta0 outputting 1x1 answer when I want them to output 1x7 answer, any suggestions?
In addition to using element-wise power (the .^ operator) and element-wise multiplication (the .* operator) you need to use the ...

casi 3 años hace | 0

Cargar más