コード生成でのcategoricalからcharへの変換について
Show older comments
Classify Static Image Using Deep Learning on Raspberry Pi を参考にRaspberry Pi上で機械学習を行っています。
その際
[label,score] = net.classify(imgSizeAdjusted);
の識別結果をechoに用いてファイルに書き込みたく
echoText = 'echo ' + char(label) + ' >> result.txt';
というコードを記述したところ「コード生成では、categorical に対して char メソッドがサポートされていません。」というエラーが表示されました。
コード生成でcategoricalをchar型に変換する方法があれば教えていただきたいです。
Accepted Answer
More Answers (0)
Categories
Find more on Deep Learning Toolbox 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!