フィルターのクリア

I get an error when l created a standalone application,What caused it and how do l fix it?

1 回表示 (過去 30 日間)
This error:Arrays have incompatible sizes for this operation.Error in=>General.ml at line19

採用された回答

Rik
Rik 2023 年 3 月 29 日
You are not testing whether the input text is actually a scalar. It is also not recommended to use this syntax, since it allows users to poke at the internals of your function.
You should use the 's' switch in your call to input, followed by str2double. Then you can use isnan to confirm it is a valid number, after wich you can use ismember to test whether or not the input is part of the list of allowed values.
  2 件のコメント
Arezou
Arezou 2023 年 3 月 29 日
Hi my dear Thank you in a comment.
Rik
Rik 2023 年 3 月 29 日
I my suggestions solved your problem, please consider marking it as accepted answer. If not, feel free to comment with your remaining issues.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by