Error using zeros "Size inputs must be integers"
古いコメントを表示
Hi all,
I have a very bizarre problem with zeros. When typing:
zeros(10*(1-.7),1)
I get the following error:
Error using zeros
Size inputs must be integers.
Although using zeros(10*(.3),1) or zeros(10*(1-.6),1) doesn't cause any problem.
1 件のコメント
Panali Pérez Reyes
2021 年 6 月 14 日
Use the "round ()" function to make sure that the values you enter to the "zeros ()" command are integers.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!