dear all
i have code like below
clcclear all for b=1:0.1:20 M((b*10)-9,:)=[1 1 1 ]end
but at b=2.4 i got this error :
M = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1Subscript indices must either be real positive integersor logicals.Error in Untitled2 (line 4) M((b*10)-9,:)=[1 1 1 ]
i really appreciated if some can help me y i get this error and what the solotions ?
Best Answer