hi every one
I have written this code But the error is showen
clear,clcN = 5;A = eye(6);B = zeros(6,3);u = zeros(3,N)x = zeros(6,N); x(:,1)=[1;1;1;1;1;1];for i=1:N x(:,i+1)=x(:,i)+A*x(:,i)+B*u(i);end
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Best Answer