How do I make the GUI executable

4 ビュー (過去 30 日間)
Dong Yi
Dong Yi 2020 年 12 月 5 日
コメント済み: Walter Roberson 2020 年 12 月 19 日
Hi guys,
What I want to ask is the general code can’t be put into the GUI, because the above code can run without GUI code, but once the GUI is added, it will be like this.
The code is related to deep learning. I want to change the part that shows the numbers to the actions I have learned. I hope that the part of the result is the action instead of the number. But I have encountered this problem so I replaced it with a number. I am still a beginner Hope everyone can help me.

採用された回答

Image Analyst
Image Analyst 2020 年 12 月 5 日
The network called "netTransfer" needs to be in scope. It is not. You need to make sure netTransfer is in the workspace of the function or script where you're calling classify().
  92 件のコメント
Image Analyst
Image Analyst 2020 年 12 月 18 日
No, we discussed this before. It's because you said predictions(k) is a categorical, and evidently a categorical can't be converted to a string. Maybe use a switch statement to check predictions(k) and assign the proper string by hard coding it in.
After 90 comments, I'm about reaching my limit. Like I said before can you call tech support? You said you could/would. Trust me, they have people there who can speak English, Chinese, Hindi, and lots of other languages, even if you call the USA office in Natick. I'm sure you'll be able to communicate with them in your native language.
Walter Roberson
Walter Roberson 2020 年 12 月 19 日
You have
x = vertcat(x{k});
but you
predictions = handles.x;
and you had not updated handles.x between those two. So you are not using the most recently calculated predictions; you are using whatever happened to be in handles.x .

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by