how to show max min mean std in GUI

조회 수: 4 (최근 30일)
Soni huu
Soni huu 2013년 1월 27일
how to create pushbutton2 to show max, min, std, mean graphic in GUI. and graph create by pushbutton1
  댓글 수: 4
Soni huu
Soni huu 2013년 1월 27일
26 rain rate graph from .dat file.
Soni huu
Soni huu 2013년 1월 27일
편집: Soni huu 2013년 1월 27일
max(daily_rain) %to show max data
then how to show line max data in graph..

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2013년 1월 27일
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
Image Analyst
Image Analyst 2013년 1월 27일
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 2013년 1월 28일
sorry.... yMin no need... :)
thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by