Error with size( )
2 次查看(过去 30 天)
显示 更早的评论
Hi All,
I am stuck at a point in my code which shows error. The code snippet is as follows;
[ n, m]= size(x1)
so, when I type size(x1) in the command window, I get the answer as 1 3 , where as the above line throws an error stating "not enough input argument".
Can someone explain me about it?
Thanks in advance
Swati
回答(2 个)
Walter Roberson
2020-11-10
You are running a function that has a parameter named x1, but you ran the function either by giving only its name at the command line, or by pressing the green Run button. You need to go down to the command line and invoke the function, passing in some appropriate parameter, such as
result = standard_deviation(rand(1,30))
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!