How to create a table and change columns to rows and also give names
3 ビュー (過去 30 日間)
古いコメントを表示
I would like to generate 14*3 matrrix.i.e.rand(14,3)
I want the table to be named like this.How can I do this with the help of MATLAB
0 件のコメント
回答 (1 件)
Walter Roberson
2022 年 8 月 18 日
YourMatrix = rand(4,3);
T = array2table(YourMatrix.', 'VariableNames', {'siddu', 'somu', 'ranu', 'bindu'})
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!