Creating table with scalars in one column and vectors in another
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yonathan Zarkovian
am 1 Mai 2022
Kommentiert: Star Strider
am 4 Mai 2022
Hi,
I'd like to create a table that contains scalars in the first column and vectors (arrays) in the second column. For example:
However, MATLAB will only let me add tables or cell arrays into an existing table.
I'd appreciate your help.
Thanks.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 1 Mai 2022
Try something like this —
theta = [30; -15];
Dm = [1 0 -1; 0 0 -1];
Data = table(theta, Dm)
.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!