Hello,
this part of function doesn't working and I don't have any idea why.
hA=axes;hold onfor i=1:length(Data) hL(i)=plot(hA,Data(i).x,Data(i).y); set(hL(i),'LineWidth',LW{i});end
If I type this code in command window it work perfectly. If I use it as part of function it return:
Subscript indices must either be real positive integers or logicals.Error in plotGraph (line 144) set(hL(i),'LineWidth',LW{i});
Best Answer