want to display output in the form of texts in neural network.pls help

1 view (last 30 days)
my project is classifying audio signals as normal, jaundice or apnea ailment baby cry signals. i have constructed neural network using matlab. my inputs are MFCCs and target is [1 20 40]. i have assigned number 1 for normal, 20 for jaundice and 40 for Apnea. its giving me proper output. my problem is i want to display output in form of text that in which category its falling. how can i do this? because it is all GUI and output is shown in 'network_output' section.please help

Accepted Answer

Image Analyst
Image Analyst on 7 Jun 2015
You can make an edit text control on your figure. Make sure the max value is 2 so you can have multi-line texts. Then make up your strings with fprintf() and then send the string to the control with set(). Something like
message = 'Your data is below';
for row = 1 : rows
message = sprintf('%s\n%d', message, data(row));
end
set(handles.edittext1, 'string', message);
  2 Comments
pranjal
pranjal on 7 Jun 2015
thank u sir. but where is the original code located. i cannot find it to append above code to that.
Image Analyst
Image Analyst on 7 Jun 2015
What original code? All my original code is there. It answers your very specific question: "my problem is i want to display output in form of text that in which category its falling. how can i do this?" You did not ask for a turnkey NN system that will do classification for you (which most likely no one would give you anyway), you simply asked how to display output as text , so that is what I gave you.

Sign in to comment.

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!