Creating a table using cell arrays
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Johnny Dessoulavy
am 25 Jan. 2022
Kommentiert: Walter Roberson
am 26 Jan. 2022
Hi,
I am trying to create a table that has all of my varibale names on the left and then a series of results produced by different simulations be produced in sebsequent columns on the right.
I have only been able to get a single set of data to appear on a table, otherwise they appear as seperate tables. Any help would be appreciated.
Groups is an 11x1 string of the variable names
Results is a 2x1 cell array where each element is an 11x1 vector containing the results.
Table = table(Results,'RowNames',(Groups));
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 26 Jan. 2022
Results = {randi(9, 11, 1); "R"+randi(9,11,1)}
Groups = cellstr(('a':'k').')
Table = table(Results{:}, 'RowNames', Groups)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!