Warning: Input arguments must be scalar.
Ältere Kommentare anzeigen
X=zeros(1,m1);
when i run this command it gives me the Warning: Input arguments must be scalar. can anyone help me with what causes this problem and what i can do to solve it!!
Antworten (2)
Image Analyst
am 19 Jun. 2012
1 Stimme
Hover over m1 when you've stopped there at a breakpoint. Chances are m1 is either a real number with some fractional part, or a matrix, or a negative number, or some other illegal entry.
1 Kommentar
Besim Sen
am 9 Jun. 2021
thanks broo
Christoph
am 19 Jun. 2012
0 Stimmen
hi namrata,
you should check if m1 is a scalar. It seems m1 is a vector or someting else.
reagrds, CN
1 Kommentar
Walter Roberson
am 19 Jun. 2012
I agree: m1 was probably created by applying size() to a vector, and the cure is probably to use length() of the vector instead.
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!