how to show max min mean std in GUI

3 visualizaciones (últimos 30 días)
Soni huu
Soni huu el 27 de En. de 2013
how to create pushbutton2 to show max, min, std, mean graphic in GUI. and graph create by pushbutton1
  4 comentarios
Soni huu
Soni huu el 27 de En. de 2013
26 rain rate graph from .dat file.
Soni huu
Soni huu el 27 de En. de 2013
Editada: Soni huu el 27 de En. de 2013
max(daily_rain) %to show max data
then how to show line max data in graph..

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 27 de En. de 2013
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 comentarios
Image Analyst
Image Analyst el 27 de En. de 2013
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-.');
Soni huu
Soni huu el 28 de En. de 2013
sorry.... yMin no need... :)
thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by