Dear guys I am new in MATLAB. It is a simple code which i make it. but i get this error message"Subscripted assignment dimension mismatch." I dont know whats the problem with that. would you please help me?
A=[]A=randi(10,2,3)for i=1:2 for j=1:3 if A(i,j)>3 A(i,j)='ok'; elseif A(i,j)==2 A(i,j)='no' else A(i,j)=' '; end endend
Best Answer