Warning: Input arguments must be scalar.
64 次查看(过去 30 天)
显示 更早的评论
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!!
0 个评论
回答(2 个)
Image Analyst
2012-6-19
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.
Christoph
2012-6-19
hi namrata,
you should check if m1 is a scalar. It seems m1 is a vector or someting else.
reagrds, CN
1 个评论
Walter Roberson
2012-6-19
I agree: m1 was probably created by applying size() to a vector, and the cure is probably to use length() of the vector instead.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!