Make two matrices of different length reducing the size of smallest matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
marwa mohamed
am 21 Jan. 2021
Kommentiert: marwa mohamed
am 21 Jan. 2021
Hey,
I have two matrix, A = [269338x2] and
B = [135194x1].
I would like to reduce the size of A to be the same size as B using a for loop.
for i = 1:2
A(:,i) = delayseq(A(:,i), 300);
A(:,i) = A(1:length(B));
end
but it doesnt work! any help??
Thanks!
Marwa
0 Kommentare
Akzeptierte Antwort
mura0087
am 21 Jan. 2021
I don't think you need to use a for loop for this. Its unclear if you want something specific out of A. But if you just want to use a portion of A that is the same size as B, just get it out with indexing.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!