how can i convert table of string to a single row vector
13 ビュー (過去 30 日間)
古いコメントを表示
i want to make a single vector of transcript character as a single row without these symbols " "
0 件のコメント
回答 (2 件)
Voss
2022 年 11 月 28 日
Something like this?
% making a table like yours:
transcript = table(["the"; "discreet"; "forier"; "transform"; "of"],[0.99085; 0.89288; 0.92346; 0.87114; 0.74899], ...
'VariableNames',{'Transcript' 'Confidence'})
% make a row vector of the words in the first column:
result = sprintf('%s',transcript{:,1})
% or maybe this is better:
result = sprintf('%s ',transcript{:,1});
result(end) = ''
0 件のコメント
Seth Furman
2022 年 11 月 28 日
Better yet, just call join on the Transcript variable
transcript = table(["the"; "discreet"; "forier"; "transform"; "of"],[0.99085; 0.89288; 0.92346; 0.87114; 0.74899], ...
'VariableNames',{'Transcript' 'Confidence'})
join(transcript.Transcript)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!