plot a cell array
2 ビュー (過去 30 日間)
古いコメントを表示
hello , can you please help me about plotting a cell array and use the 1st column as a nae for each line ? for example my cell is this
0 件のコメント
回答 (1 件)
Guillaume
2019 年 1 月 30 日
Assuming that nae means name and that's what you want the legend to show for each row:
hlines = plot(cell2mat(yourcellarray(:, 2:end))'); %have to transpose as plot plots columns
[hlines.DisplayName] = yourcellarray{:, 1};
legend('show');
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!