Community Profile

photo

Vijay Shekhawat


Last seen: 2 years ago Active since 2019

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


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,:...

2 years ago | 1 answer | 0

1

answer

Question


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...

3 years ago | 0 answers | 0

0

answers