how can i solve this error : Error using / Not enough input arguments.
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
stuck in following line of code and facing this error message
aspect_ratio = results(index).MajorAxisLength /results(index).MinorAxisLength arr(k,1)=aspect_ratio
i have tried using "./" instead as well as putting ";"in end of code but error does not solved. help me in this regard.
1 件のコメント
Jan
2018 年 7 月 1 日
Aren't these two lines of code?
aspect_ratio = results(index).MajorAxisLength /results(index).MinorAxisLength;
arr(k,1) = aspect_ratio;
回答 (1 件)
Jan
2018 年 7 月 1 日
Set a breakpoint in the failing line - after fixing the problem that these are two lines (see my comment above). Or let Matlab stop automatically when the error occurs by typing this in the command window:
dbstop if error
Now run the code again. When Matlab stops, check the locally used variables:
class(results)
size(results)
class(index)
size(index)
I guess, that index is empty. Then results(index).MajorAxisLength has no element, such that you do not have an input for the division.
1 件のコメント
Hira Abid
2018 年 7 月 1 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!