how to do superimposing?

3 views (last 30 days)
prabakaran arumugam
prabakaran arumugam on 2 Dec 2019
Answered: Image Analyst on 2 Dec 2019
for m=1:5
figure(2); subplot(3,3,m);
plot(Jan_global(:,n));ylim([0 400]);xlim([0 120]);title(B(1,x));ylabel('Irradiance');xlabel('Time');
set(gca,'XTickLabel',{'7.45';'13.00';'17.00';});
set(groot,'defaultLineLineWidth',1.5)
m=m+1;
n=n+1;
x=x+1;
end
I'm having code to create a multiple graphs using the loop.
How do I superimpose the mean value graph in that same graph?
What change do I need to make in that code.

Answers (1)

Image Analyst
Image Analyst on 2 Dec 2019
After the first call to plot(), call hold on:
hold on;

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!