Hi I was trying to do this loop.And I got these errors:
'Warning: Out of range or non-integer values truncated during conversion to character. Assignment has more non-singleton rhs dimensions than non-singleton subscripts'
for mm = 1:4 dataset=strcat(DataSetU(num2str(mm)),'M',num2str(mm)); dataset(1,mm)=[DataBase{1,mm}]; time=dataset(:,1); q=dataset(:,4); .... theta_param(mm)=(X'*X)^-1*X'*qdot;end
Best Answer