Can you help me to solve this problem ?

1 回表示 (過去 30 日間)
Yudawan Hidayat
Yudawan Hidayat 2020 年 7 月 30 日
コメント済み: Walter Roberson 2020 年 8 月 8 日
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 件のコメント
JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH 2020 年 7 月 30 日
Can you specify more eg output matrix size and desired result?
Yudawan Hidayat
Yudawan Hidayat 2020 年 8 月 5 日
output matrix is 2x40, and target are 00,01,10 and 11 sir

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

採用された回答

Walter Roberson
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 件のコメント
Yudawan Hidayat
Yudawan Hidayat 2020 年 8 月 8 日
編集済み: Yudawan Hidayat 2020 年 8 月 8 日
How do I make this result appear in the new figure? not only in the comment window
Walter Roberson
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 ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by