GUI and user-defined function

1 回表示 (過去 30 日間)
Huy Truong Tan Gia
Huy Truong Tan Gia 2020 年 9 月 6 日
コメント済み: Mario Malic 2020 年 9 月 6 日
Can anyone know what is the problem?
This is the the user-defined function.
This is the GUI. And when I run it, there are errors:

回答 (1 件)

Mario Malic
Mario Malic 2020 年 9 月 6 日
Define your result as an empty array first. This may resolve your issues, depending on the rest of the code
result = [];
  4 件のコメント
Rik
Rik 2020 年 9 月 6 日
elseif can be easier to read. It also allows compound conditions, which can be hard or impossible to create with switch,case.
These characters need to be encoded correctly inside the mlapp file and in the m file. If you aren't using R2020a you really need to be careful about editing, as you need to make sure Matlab saves the file encoded with UTF-8, which it does by default in R2020a, but not before. Many people have lost their é characters in their comments and chars and getting them replaced with questionmarks.
Mario Malic
Mario Malic 2020 年 9 月 6 日
Actually, I am one of those people! Thanks for the hint.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by