column vector from another vector

2 vues (au cours des 30 derniers jours)
Amit Ifrach
Amit Ifrach le 23 Juil 2023
Commenté : VBBV le 23 Juil 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 commentaire
VBBV
VBBV le 23 Juil 2023
Another way to obtain column vector is
acd3sctrdata=[acd3cd8noly{5,1:end}];
acd3sctrdata = acd3sctrdata(:) % another way

Connectez-vous pour commenter.

Réponse acceptée

Stephen23
Stephen23 le 23 Juil 2023
vertcat(acd3cd8noly{5,1:end})

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by