Hi everyone,
i hope someone can help. I keep getting this error when trying to plot some data:
Array indices must be positive integers or logical values.
Error in ProzPall450 (line 15)
ylim ([-0.5 4])
It has worked previously no problem. Here is some exemplary code. I use Matlab R2020a. Has anyone else been experiencing issues with ylim?
subplot(2,1,1)yyaxis leftplot (tmin,TMP,'Color',[.02 .24 .39])ylim ([-0.5 4])ax = gca;ax.YColor = 'k'grid ontitle ('A')xlabel ('Time [min]')label_1 = ylabel('TMP [bar]')label_1.Position(1) = -0.05*86.0333label_1.Position(2) = 1.75
Best Answer