how to show max min mean std in GUI

how to create pushbutton2 to show max, min, std, mean graphic in GUI. and graph create by pushbutton1

4 Commenti

What have you done so far?
i have 26 rain rate graph.. then i need to show max rain,mean rain and std rain from the graph.
26 rain rate graph from .dat file.
Soni huu
Soni huu il 27 Gen 2013
Modificato: Soni huu il 27 Gen 2013
max(daily_rain) %to show max data
then how to show line max data in graph..

Accedi per commentare.

 Risposta accettata

In the callback for pushbutton1, put this:
maxValue = max(daily_rain);
minValue = min(daily_rain);
stdDev = std(daily_rain);
bar([minValue, maxValue, stdDev]); % Display in bar chart.
If that's not what you want, then say what you want. You haven't so far.

3 Commenti

Soni huu
Soni huu il 27 Gen 2013
Modificato: Soni huu il 27 Gen 2013
just line.. like 2 line in this pic http://prntscr.com/qnlew
Why does your data extend below yMin?
% Plot data.
plot(data1, 'b-');
hold on; % Don't let the next plots blow away the data plot.
numberOfElements = numel(data);
% Plot max and min.
plot(maxValue*ones(1,numberOfElements), 'b-.');
plot(minValue*ones(1,numberOfElements), 'g-.');
sorry.... yMin no need... :)
thanks

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by