How can I add x1 to x5 in a loop
Show older comments
x(j) = [zeros(t(j),1);x_m';zeros(t_max -t(j),1)];
x1 = x(:,1);
x2 = x(:,2);
x3 = x(:,3);
x4 = x(:,4);
x5 = x(:,5);
y_m = x1+x2+x3+x4+x5;
Accepted Answer
More Answers (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!