add Summary statistics on a plot
Ältere Kommentare anzeigen
How can I add summary statistics on a plot? I have n plots and also I have separetly result of nash sutcliffe NSE and Mean Bias Error (MBE) matrix table (n*2). What I want to do is to put NSE and MBE reuslts on each plot outside the plot box.
figure(i)
legend
hold on
Qmax=1.2*(max(max(Q)));
s=length(Q);
plot(Q(w:end,1),'k','LineWidth',2.25);plot(Q(w:end,2),'b','LineWidth',2.25);
axis([1 s 0 Qmax])
legend(['Qobs', num2str(i)],['Qsim', num2str(i)],-1);
xlabel('time [days]')
ylabel('daily discharge [m^3/s]')
title([stations(i,3),stations(i,1)]);
text(s,Qmax,['NSE = ',num2str(NSE(i))])
text(s,Qmax,['MBE = ',num2str(MBE(i))])
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 6 Okt. 2014
Bearbeitet: Sean de Wolski
am 6 Okt. 2014
0 Stimmen
You can use the interactive "Data Statistics" option to add stats to the plot:

Kategorien
Mehr zu Box Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!