how can make a matrix from many vectors?
Ältere Kommentare anzeigen
how can make a matrix from many vectors?
3 Kommentare
sixwwwwww
am 18 Okt. 2013
Are all the vectors of same length?
Azzi Abdelmalek
am 18 Okt. 2013
You should precise column vectors or row vectors?
fatemeh
am 18 Okt. 2013
Antworten (3)
vaishali
am 18 Okt. 2013
1 Stimme
C = horzcat(A1, A2, ...) horizontally concatenates matrices A1, A2, and so on. All matrices in the argument list must have the same number of rows
1 Kommentar
Azzi Abdelmalek
am 18 Okt. 2013
or vertcat
Jos (10584)
am 18 Okt. 2013
Bearbeitet: Jos (10584)
am 18 Okt. 2013
1 Stimme
Azzi Abdelmalek
am 18 Okt. 2013
out=[A1;A2;A3;...]
1 Kommentar
Azzi Abdelmalek
am 18 Okt. 2013
Bearbeitet: Azzi Abdelmalek
am 18 Okt. 2013
out=zeros(1000,2) % Pre-allocate
for k=1:1000
out(k,:)=... % your calculations
end
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!