divide a matrix per a vector
18 views (last 30 days)
Show older comments
Paul Rogers on 11 Dec 2019
Commented: Paul Rogers on 12 Dec 2019
Hi, I have a matrix A(7x1001) and a matrix B(1x7).
I'd like to divide the first row of A for the first colum(element) of B,
second row of A for the second column in B, and so on.
A and B are in attached
per isakson on 11 Dec 2019
C = A ./ reshape( U2, ,1 );
More Answers (0)
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!