Y = round(rand(5,3)*10);
subplot(2,2,1)
bar(Y,'grouped')
title 'Group'
subplot(2,2,2)
bar(Y,'stacked')
title 'Stack'
subplot(2,2,3)
barh(Y,'stacked')
title 'Stack'
subplot(2,2,4)
bar(Y,1.5)
title 'Width = 1.5'
MATLABのコードって忘れやすい・・・
プログラムのコマンドなんて忘れやすいもの・・・いっそのことネット上に保存してシェアしましょう!!
It's easy to forget command for MATLAB in programming.... Let's share small help for Matlab code with you on the web!!
It's easy to forget command for MATLAB in programming.... Let's share small help for Matlab code with you on the web!!
2010年9月30日木曜日
2010年9月21日火曜日
errorbar etc....
Matlab Centralを見ると、errorbarに関するコードが他にもこんなにあった。
http://www.mathworks.com/matlabcentral/fileexchange/27387-create-healthy-looking-error-bars
http://www.mathworks.com/matlabcentral/fileexchange/10803-barweb-bargraph-with-error-bars
http://www.mathworks.com/matlabcentral/fileexchange/27494
ってなわけで、これを試してみるべし。
http://www.mathworks.com/matlabcentral/fileexchange/27387-create-healthy-looking-error-bars
http://www.mathworks.com/matlabcentral/fileexchange/10803-barweb-bargraph-with-error-bars
http://www.mathworks.com/matlabcentral/fileexchange/27494
ってなわけで、これを試してみるべし。
登録:
投稿 (Atom)