i am trying to save 10 patient data by using a counter loop which change row and column location each loop to save in matlab them sent to excel but i keep getting ' Subscripted assignment dimension mismatch' , any ideas this is my code :
count=1;a=[];for pat=1:10 prompt='input age'; age=input(prompt) prompt ='input weight'; weight=input(prompt ) prompt='input hight'; hight=input(prompt) prompt='input gender F/M'; sex=input(prompt) b=[age,weight,hight,sex]; a(pat,count)=b; count=count+1;end
Best Answer