How to add columns to form a matrix?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahmad Hasnain
le 12 Déc 2018
Réponse apportée : madhan ravi
le 12 Déc 2018
I am calculating a column vector in a FOR loop. I get N columns and I want to put them in a matrix.
for i = 1: N
dc(i) = ...
end
dcmatrix =[ dc(1) ; dc(2); .... ;dc(N) ]
%% The above example of dcmatrix is doing it manually. How can I do it with a code?%%
I calculate this dc column vector. I want to all the column vector in the form of matrix. I don't know how to do it.
0 commentaires
Réponse acceptée
Plus de réponses (2)
Voir également
Catégories
En savoir plus sur Logical 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!