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

4 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 27 日
What have you done so far?
Soni huu
Soni huu 2013 年 1 月 27 日
i have 26 rain rate graph.. then i need to show max rain,mean rain and std rain from the graph.
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 日

0 投票

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 件のコメント

Soni huu
Soni huu 2013 年 1 月 27 日
編集済み: Soni huu 2013 年 1 月 27 日
just line.. like 2 line in this pic http://prntscr.com/qnlew
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 件)

カテゴリ

ヘルプ センター および File Exchange で Graph and Network Algorithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by