How to display MAPE in gui?

1 回表示 (過去 30 日間)
Dominika
Dominika 2017 年 3 月 27 日
コメント済み: Dominika 2017 年 4 月 19 日
for example value for mape is 50:
mape = 50;
set(handles.text10,'String','MAPE = '+mape_2);
In GUI I have lot of different values, but I need only one value - 50. Please I need help!
and mape as text is not here too. I have only this on my gui - picture

採用された回答

Geoff Hayes
Geoff Hayes 2017 年 3 月 28 日
Dominika - why is one variable named mape but then you reference mape_2 where you set the string of the text10 control? If you are trying to update the text string with a combination of 'MAPE =' and 50 then try doing the following
mape = 50;
set(handles.text10, 'String', ['MAPE = ' num2str(mape)]);
In the above, we use num2str to convert the number into a string and then concatenate it with 'MAPE =' using the square brackets.
  1 件のコメント
Dominika
Dominika 2017 年 4 月 19 日
Works. :) Thank you very much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by