column vector from another vector

2 Ansichten (letzte 30 Tage)
Amit Ifrach
Amit Ifrach am 23 Jul. 2023
Kommentiert: VBBV am 23 Jul. 2023
לק"י
Hi
I think it is a very simple question, but i coulnd't find a quick answer to this.. I want to create column vector from another cell. I allways seem to get row vector, not a column.
the code:
acd3sctrdata=[acd3cd8noly{5,1:end}];
how can I make it a column vector easily please?
Thanks,
Amit.
  1 Kommentar
VBBV
VBBV am 23 Jul. 2023
Another way to obtain column vector is
acd3sctrdata=[acd3cd8noly{5,1:end}];
acd3sctrdata = acd3sctrdata(:) % another way

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stephen23
Stephen23 am 23 Jul. 2023
vertcat(acd3cd8noly{5,1:end})

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices 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!

Translated by