Can you help me to solve this problem ?
1 次查看(过去 30 天)
显示 更早的评论
I made a project to find out blood type using a neural network, with target outputs 00, 01, 10, and 11.
How do I change the output to O, A, B and AB and appear in the text box?
2 个评论
采纳的回答
Walter Roberson
2020-7-30
编辑:Walter Roberson
2020-7-30
For the purpose of discussion, I will assume that the targets are numeric 00, 01, 10, and 11, all in decimal -- one target per input. There are definitely other possibilities, some of which would have two targets per input, each of which was either binary 0 or binary 1, and we can get to those later if that is what turns out to be the case for you.
bloodtypes = {'O', 'A', 'B', 'AB'};
[~, idx] = ismember(target, [00, 01, 10, 11]);
target_bloodtypes = bloodtypes(idx);
The result would be a cell array of character vectors.
8 个评论
Walter Roberson
2020-8-8
you can text() into an axes. Or you can create a uicontrol style text or style edit to put the text into. Or you can create a uitable . Or you can msgbox()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!