Hello ,
I have an issue with getting everything to show on my figure correctly. I made four subplots but for some reason my 4th subplot is not showing and also the legend, text and title is not showing correctly either
please help
Here's my code
%% Plot
figure; plot(t,x11,'-*'),hold on; plot(t,x(:,1),'-') title('x1 vs Non-linear') legend({'x1','Non-linear'},'Location','northeast') txt = {'eq point [0.5,0.5]','initial point[0.51,0.51]'}; text(.4,10,txt) subplot(2,2,1) plot(t,x12,'-*'),hold on; plot(t,x(:,2),'-') title('x2 vs Non-linear') legend({'x2','Non-linear'},'Location','northeast') txt = {'eq point [0.5,0.5]','initial point[0.51,0.51]'}; text(.4,10,txt) subplot(2,2,2) plot(t,x13,'-*'),hold on; plot(t,x1(:,1),'-') title('x1 vs Non-linear') legend({'x1','Non-linear'},'Location','northeast') txt = {'eq point [0.5,0.5]','initial point[1,1]'}; text(.4,10,txt) subplot(2,2,3) plot(t,x14,'-*'),hold on; plot(t,x1(:,2),'-'); title('x2 vs Non-linear') legend({'x2','Non-linear'},'Location','northeast') txt = {'eq point [0.5,0.5]','initial point[1,1]'}; text(.4,10,txt) subplot(2,2,4)
Best Answer