Hello,
I am trying to make a matrix in MATLAB that does this:
for i=1:1:400
M(i,1)=1;
M(i,2)=i;
M(i,3)=i.^2;
M(i,4)=cos(2*pi*t(i)/T+(i*pi/180));
end
But in one line.
Tried quite some things but they just wouldn't work.
Your help is much appreciated!
Cheers!!
Best Answer