how to add the sequences in the mat lab?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
for ex i have sequences A=[1 2 3 4]
B=[1 2 ]
i want to add the zeros in the B sequence by comparing the length..
Akzeptierte Antwort
Conrad
am 11 Jul. 2012
Did you mean something like this?
A = [1 2 3 4];
B = [1 2];
B = [B zeros(1,length(A)-length(B))];
B will then be equal to [1 2 0 0].
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!