length error don't know why
古いコメントを表示

2 件のコメント
Steven Lord
2024 年 3 月 3 日
Please show us the full and exact text of the warning and/or error messages (all the text displayed in orange and/or red in the Command Window.) That exact text may help us more easily determine the root cause of the error and be able to suggest a workaround or solution.
Please don't post your code as a screenshot. Please instead post it as formatted text, e.g.,
a=1;
b=2;
as well as a .mat file attachment with the inputs necessary to run the code.
採用された回答
その他の回答 (1 件)
Sulaymon Eshkabilov
2024 年 3 月 3 日
Check this in the command window:
which length
If by mistake any variable or M-file was called by length, the variable can be removed with:
clearvars length
If a mistkaenly named M-file exists, then it should be deleted.
1 件のコメント
Stephen23
2024 年 3 月 3 日
The CVX toolbox defines its own LENGTH function/method. I would not recommend deleting it.
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!