ちなみに、str2numだとエラーが出ないのですが、
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1800615/image.png)
AppDesignerで作成しているアプリのコールバック関数内に書くと、
「スカラー値の演算を行う場合は、パフォーマンスを高めるために STR2DOUBLE の使用を検討してください。」
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1800620/image.png)
というアナウンスが出ます。
str2numとstr2doubleの違いについてもよく分からなかったので、以下のページも見ていたのですが、一般的にはstr2doubleを使用するのでしょうか。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!