Answered
error while installing MATLAB in MacBook m1 pro
What happened when you tried the steps suggested in the MATLAB Answers post linked in the error dialog?

4 years ago | 0

| accepted

Answered
sum on empty arrays
sum(zeros(0,0)) This is a special case, see the definition of the input argument A on the documentation page for the sum functi...

4 years ago | 0

| accepted

Answered
error using plot data must be numeric, datetime, duration or an array convertible to double
Let's see what you're trying to plot. t=[0:0.1:50] syms s gs=1/(s^2 + 5*s + 6); roots([1 5 6]); gjw=fourier(gs) If you wan...

4 years ago | 0

| accepted

Answered
I am a lecturer at MIPT. Used MATLAB under license from the university, And now I can't do it. Help me, what should I do?
It would be difficult if not impossible to offer specific suggestions without knowing more about what "I can't do it" means in t...

4 years ago | 0

Answered
Error tolerance in ODE45
Are you referring to the options in the Error Control option group in the table on this documentation page? If you click on the ...

4 years ago | 0

| accepted

Answered
Matlab crash on Ubuntu 20.04
Please send the script that you're running that causes this crash (along with any supplemental data and/or helper files needed t...

4 years ago | 0

Answered
An executable in the 2022a pre-release gets flagged as a threat by McAfee
Please send all questions or feedback about the Prerelease to Technical Support instead of posting them to MATLAB Answers.

4 years ago | 0

Answered
Accessing frequencies of arbitrarily selected histogram bins
Let's take a look at a sample histogram. I'm using rng default to create the sample data so the histogram created when you run t...

4 years ago | 1

| accepted

Answered
Run Section funcionality isn't working
Look in the upper-right corner of the Editor window. Do you see a red square or a red circle with an exclamation point in it? Th...

4 years ago | 0

Answered
matlab undo ctrl-z like in every other IDE or text editor
You probably want to switch to the Windows Default Set of keyboard shortcuts. Or you could customize just the Undo shortcut.

4 years ago | 0

| accepted

Answered
Calling latest version number of my own functions from one of my other functions?
The "workable, intelligent" solution would be to use a source control management system like Git. If for whatever reason that's...

4 years ago | 1

Answered
In surface(x,y,z) command what is the value of z that make the white color. I mean is there a color code for surface of surf
Many plotting functions interpret NaN in the data as "don't display anything." [x, y, z] = peaks; z(abs(z) < 1) = NaN; % Cut o...

4 years ago | 0

| accepted

Answered
Change class property inside of class function/method
Your class does not inherit from the handle class so it has value class behavior. See this documentation page for a discussion o...

4 years ago | 1

| accepted

Answered
Choose order of input variables for matlabFunction
See the 'Vars' name-value pair argument in the documentation for matlabFunction.

4 years ago | 0

| accepted

Answered
Ηow to solve an equation depends on a system of odes and use the result to the next run?
It sounds like you don't have a system of ordinary differential equations (ODE) but a system of delay differential equations (DD...

4 years ago | 0

| accepted

Answered
Evaluating Nested Anonymous Functions
How do you get the anonymous function to display the coefficients (to four decimal places)? You don't, at least not without stri...

4 years ago | 0

Answered
Passing a constant function handle to another function
What appears in the error message is not what appears in the code you posted. First a comment about the code you posted: simula...

4 years ago | 0

| accepted

Answered
How can I solve this differential delay equation?
Use the functions described in this section of the documentation.

4 years ago | 0

Answered
How can I use a user input to pull a column from a timetable?
Whenever you write T.foo where T is a table, that only works if T has a variable literally named foo (with one exception, Proper...

4 years ago | 1

| accepted

Answered
Install for MATLAB R2020b Update 4 needed
The most recent update available for release R2020b is Update 7. Is there a reason you need specifically the older update releas...

4 years ago | 0

Answered
n dimensional array section
Use a comma-separated list. n = 2; % or 3 or whatever dims = 4*ones(1,n); A = randi([0,9],dims) % Leaving the semicolon off f...

4 years ago | 0

Answered
integral calculation size problem
a = 0.6; % Define pu and pL Make PU and PL functions of x. PU = @(x) 130000*exp(-x./(10*a)); PL = @(x) 150000*exp(-x./(10*a...

4 years ago | 0

Answered
Bulgarian solitaire for creating a pattern
A couple suggestions: % Bulgarian Solitaire % Generate a random integer array whose elements total less than 46 array = randp...

4 years ago | 0

Answered
How to plot symbolic function with string specification?
Store your options as a cell array and turn it into a comma-separated list when you call fplot. syms x f = x; options = {'b',...

4 years ago | 1

| accepted

Answered
How to find out if a logical array is all zeros?
For a vector, all with one input will work. x = ones(10, 1); all(x > 0) % true For a non-vector array you probably want to sp...

4 years ago | 1

Answered
Which SVD algorithm implementation is used in MATLAB?
Keep in mind that the SVD of a matrix is not unique. Quoting from Wikipedia: "Non-degenerate singular values always have unique ...

4 years ago | 1

Answered
MATLAB executable file for predictive modeling
From the documentation: "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any ...

4 years ago | 0

| accepted

Answered
I'm trying to convert date numbers to character dates, I created a vector using datenum and manually entering each date in Y,M,D,H,M,S format, and it works but I hope to find
Instead of using serial date numbers with datenum, use datetime. % Arbitrary data. I entered this manually, but you could build...

4 years ago | 0

Answered
how can he ask the k while saying it in same question I don't understand
You're probably going to have to ask your professor, teacher, or teaching assistant to explain why "k = " is in that question. W...

4 years ago | 0

Answered
Lost in "Handle Land"...
The imshow function creates a scalar image object representing the picture as a whole. That object contains the color data as on...

4 years ago | 0

Load more