Vijay Shekhawat
Followers: 0 Following: 0
Feeds
提问
Add each row of a matrix consecutively to all the rows of other matrix where both have equal number of columns
A=[1 2;3 4;5 6;7 8]; B=[1 1;2 2]; lA=length(A); H=zeros(1,2); for i=1:lA H0=A(i,:) + B; H=cat(1,H,H0); end H(1,:...
4 years 前 | 1 个回答 | 0
1
个回答提问
How to multiply different elements of a vector(with no value stored) inside a for loop to generate an equation.
I want to repeatedly add one form of the equation i times, in this I want constants as f(1),f(2)... and variables x1, x2...y1,y2...
5 years 前 | 0 个回答 | 0