How to create a table and change columns to rows and also give names
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to generate 14*3 matrrix.i.e.rand(14,3)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1101315/image.jpeg)
I want the table to be named like this.How can I do this with the help of MATLAB
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1101320/image.jpeg)
0 Commenti
Risposte (1)
Walter Roberson
il 18 Ago 2022
YourMatrix = rand(4,3);
T = array2table(YourMatrix.', 'VariableNames', {'siddu', 'somu', 'ranu', 'bindu'})
Vedere anche
Categorie
Scopri di più su Tables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!