Info

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

Why there is error for "str_id = num2str(gr​id_id,'%2.​2i');"? what should I change?

1 回表示 (過去 30 日間)
Amra Rajuli
Amra Rajuli 2018 年 1 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Why there is error for "str_id = num2str(grid_id,'%2.2i');"? what should I change? the error message is:
Not enough input arguments.
Error in data_proc (line 174) str_id = num2str(grid_id,'%2.2i');
  1 件のコメント
Guillaume
Guillaume 2018 年 1 月 29 日
If you want help with an error, at a minimum state what the error is. We certainly can't guess. Best is to copy the full error message, everything in red.

回答 (1 件)

Guillaume
Guillaume 2018 年 1 月 30 日
編集済み: Guillaume 2018 年 1 月 30 日
"Why there is error"
Most likely, because you called data_proc with less than 4 arguments. The error will happen if you call data_proc with, for example,
data_proc(0, 10, 2)
instead of
data_proc(0, 10, 2, 6)

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by