Answered
add-on download errors
Is the firewall both blocking the Add-On Explorer in MATLAB and also blocking you from accessing the files on the File Exchange ...

8 years ago | 0

Answered
Mean and identification values
There's no such thing as element 0, row 0, or column 0 in a matrix in MATLAB. If you replace your 999999 values with NaN you co...

8 years ago | 0

| accepted

Answered
Shotest path between any two nodes in the graph
See the graph and network algorithms functionality included in MATLAB. The shortestpath, shortestpathtree, and/or distances func...

8 years ago | 0

Answered
using roots with vectorization of a polynomial vs. the function it’s self
Look at what the roots function is documented to do. r = roots(p) returns the roots of the polynomial represented by p as a col...

8 years ago | 1

| accepted

Answered
How to use robocopy in matlab ?
Build the command from the text data then pass the constructed command into system. source="C:\2018\c\EM" destination="U:\Prob...

8 years ago | 0

Answered
How do I index into a timeseries using relative datetime values
Turn your datetime array into a duration array by subtracting off the starting time, then use that duration to construct a timet...

8 years ago | 0

Answered
Matlab not plotting in -ve direction
From the documentation for the plot function: plot(Y) creates a 2-D line plot of the data in Y versus the index of each value. ...

8 years ago | 0

Answered
Please find the solution for this matlab r2013a server installation error
As the error message suggests, contact your license server administrator. Ask them to add the appropriate SERVER line to the lic...

8 years ago | 0

Answered
Error using horzcat with num2str function for creating character class
You have one extra ' after your second num2str call. That's not a problem when Bd is a number with just one digit (the transpose...

8 years ago | 0

Answered
How to use a value of type 'cell' as an index.
For this particular example, using that cell array of names as the VariableNames or RowNames of a table may be appropriate. nam...

8 years ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1).
Have you created a variable named mass in your workspace? If so, that line of code you wrote will attempt to index into that var...

8 years ago | 0

| accepted

Answered
Hi..Is there any way to open .MAX extension file in matlab.
If this is not a standard file format that MATLAB or another MathWorks product contains a function to read (which I believe is t...

8 years ago | 0

Answered
Cant call function in script, function has switch case
Eliminate the "n_poly==" part of your case statements. MATLAB will perform the equality testing for you. See the "Compare Single...

8 years ago | 0

Answered
Why i can't use the function Graph::isEdge in my code??
As madhan ravi said, the function you found is only for MuPAD. Since you're working with the graph object included in MATLAB, us...

8 years ago | 0

Answered
What is the minimum RAM/ Memory is needed in order to run MATLAB smoothly?
See the System Requirements page.

8 years ago | 1

| accepted

Answered
in the old old days, whos function also give total variable size, how do i do that now [ver 9.4.0.813654 (R2018a)]
You call whos as normal? >> x = magic(4); >> y = struct('foo', 1, 'bar', 2); >> z = ["apple"; "banana"; "cherry"]; >> whos ...

8 years ago | 0

| accepted

Answered
why is the short name of black 'k' ?
I'm not certain but I suspect it refers to the "keyline" or "key plate" as mentioned on the Wikipedia page for the CMYK color mo...

8 years ago | 1

| accepted

Answered
how to create a matrix of values from a X and Y coordinates
Make a regular grid of Xq and Yq coordinates with meshgrid then pass your scattered data and the grid coordinates to the griddat...

8 years ago | 0

Answered
constant randperm in each iteration
First, you should probably use a different variable name for your vector of data. all already has a meaning in MATLAB. Second, ...

8 years ago | 0

| accepted

Answered
Divide and Average Method to Calculate Square Root
A couple comments about your while loop: while 1==1 %run until the if statement breaks the loop There are better ways to end t...

8 years ago | 0

Answered
Converting 2x1 Symbolic array to 2x1 Numeric matrix in Matlab
As madhan ravi said, use the subs function. Its whole purpose is to substitute values for symbolic variables into an expression....

8 years ago | 1

| accepted

Answered
Function value at starting guess must be finite and real
As David said, fzero is complaining about the value of your function at the initial guess. A simpler example illustrating the pr...

8 years ago | 1

| accepted

Answered
How to find the maximum peak of histogram probability and error from true value?
x = randn(1, 1e5); h = histogram(x); [maxcount, whichbin] = max(h.Values); title("Maximum of " + maxcount + " occurs in bin "...

8 years ago | 2

Answered
I cant download anything from Matlab servers.
The last outage listed on the status page was on February 4th. I second Rik Wisselink's suggestion to contact Technical Support ...

8 years ago | 1

| accepted

Answered
cputime and tic...toc: high time difference
See the "The cputime Function vs. tic/toc and timeit" section on this documentation page. One potential big difference is how ma...

8 years ago | 0

Answered
Symbolic differentiation using str2sym takes too long.
Don't redefine the variables each iteration through the loop. Define them as symbolic once and use them in the loop. tic syms ...

8 years ago | 0

Answered
datetime function vertical line
From the error message, you've plotted some datetime data that includes time zone information. If you do that, and you want to u...

8 years ago | 1

| accepted

Answered
Selecting on function from an array of anonymous functions
Indexing into a cell array using parentheses returns one or more elements of the cell array. The result is itself a cell array. ...

8 years ago | 1

| accepted

Answered
I'm not sure what I'm doing wrong that gives me a error
If you open this code in the MATLAB Editor, you should see that there is a red square in the upper-right corner of the Editor wi...

8 years ago | 0

Answered
How to fix black figure error?
You have a lot of individual squares in the "checkerboard" being displayed. What you're seeing are all the edges between the squ...

8 years ago | 1

Load more