Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I change my fprint error

1 回表示 (過去 30 日間)
Yixuan Zhang
Yixuan Zhang 2019 年 9 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日

回答 (1 件)

Image Analyst
Image Analyst 2019 年 9 月 15 日
編集済み: Image Analyst 2019 年 9 月 15 日
You can't use the Ice array itself for indexes since they're floating point and indexes need to be like 1, 2, 3, 4, 5 etc. (integers starting at 1). To fix:
fprintf('Ice thickness for %d days = ', length(Ice));
fprintf('%.3f, ', Ice);

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by