matrix dividing
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
If I have a big matrix like this: A=ones(1,450000). How can I divide it in 300 equal parts (1, 1500) and multiple these 300 parts (arrays) with a matrix with dimensions B=(1,300)?
Thank you...
0 Kommentare
Antworten (1)
Fangjun Jiang
am 15 Nov. 2011
A=ones(1,450000);
NewA=reshape(A,300,[]);
C=B*NewA;
2 Kommentare
Fangjun Jiang
am 15 Nov. 2011
Use this example to understand the row and column
Assume B=magic(3)
B(:,1) is the first column of B, B(:,2) is the second column,...
B(1,:) is the first row of B, B(2,:) is the second row, ...
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!