How do I make the GUI executable

4 views (last 30 days)
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.

Accepted Answer

Image Analyst
Image Analyst on 5 Dec 2020
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 Comments
Image Analyst
Image Analyst on 18 Dec 2020
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 on 19 Dec 2020
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 .

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!