Design a GUI for data analisys

I have to design GUI for my mfile code, this the illustration of process my matlab code
my GUI design (but i acepted any recommendation) :
where :
if in command window u need to write :
daily graph code for jan 2010 :
RainData = ReadManySoniData( 'C:\matlab7\work\org\2011', '*.dat' );
[ day_number, daily_rain ] = DailyRain( RainData, 2010, 1);
plot( day_number, daily_rain )
ylabel('Akumulasi Curah Hujan (mm)')
xlabel('Tanggal')
datetick('x','dd','keepticks')
daily graph code for feb 2011:
RainData = ReadManySoniData( 'C:\matlab7\work\org\2011', '*.dat' );
[ day_number, daily_rain ] = DailyRain( RainData, 2011, 2);
plot( day_number, daily_rain )
ylabel('Akumulasi Curah Hujan (mm)')
xlabel('Tanggal')
datetick('x','dd','keepticks')
monthly graph code for 2010:
RainData = ReadManySoniData( 'C:\matlab7\work\org\2010', '*.dat' );
mr = MonthlyRain( RainData );
plot( mr(1).Rain, 'd' );
bar( mr(1).Rain );
xlabel('Tanggal')
ylabel('Akumulasi Curah Hujan (mm)')
xlabel('Bulan')
monthly graph code for 2011:
change ( 'C:\matlab7\work\org\ 2010 ', '*.dat' ) to ( 'C:\matlab7\work\org\ 2011', '*.dat' )
i use MATLAB 2012a

댓글 수: 3

Soni huu
Soni huu 2013년 1월 23일
thanks..
Walter Roberson
Walter Roberson 2013년 1월 23일
I am not sure what your question is?
Soni huu
Soni huu 2013년 1월 23일
i have mfile code.. but i can't make a GUI from my mfile

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

 채택된 답변

Image Analyst
Image Analyst 2013년 1월 23일

0 개 추천

Please view these excellent tutorials on creating a GUI: http://blogs.mathworks.com/videos/category/gui-or-guide/

댓글 수: 6

Soni huu
Soni huu 2013년 1월 23일
yes.. I've seen, but i still dont know how to process 26 different command(2 montly data + 24 daily data) in 1 button
for monthnum = 1 : 12
[ day_number, daily_rain ] = DailyRain( RainData, 2011, monthnum);
[...]
end
Soni huu
Soni huu 2013년 1월 23일
then.. how i chose the month in GUI,
in the popup menu??
Soni huu
Soni huu 2013년 1월 23일
i have this example too.. :(
So then you know how to set the contents of a pop-up menu, and you know how to retrieve the contents of a pop-up menu. The only part that is left is to pass the value you retrieved as a parameter to a call. If you stored that value in the variable monthnum then you would do
[ day_number, daily_rain ] = DailyRain( RainData, 2011, monthnum);

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by