Feeds
已回答
How to apply the same operation to an ever increasing number of columns?
The easiest method is to use a for loop. C = zeros(20, 7); for i = 1:7 C(:, i) = B(:, 1:i)*A(1:i)'; end C
How to apply the same operation to an ever increasing number of columns?
The easiest method is to use a for loop. C = zeros(20, 7); for i = 1:7 C(:, i) = B(:, 1:i)*A(1:i)'; end C
3 years 前 | 1
