| 查看: 517 | 回复: 2 | ||||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||||
18811406325新虫 (正式写手)
|
[求助]
MATLAB小白求助画图的一个简单问题 已有1人参与
|
|||
|
情况是这样的,小弟我要用MATLAB把一个周期360度内的波形图分成36段每段10度,然后求取每段的有效值,最后再将它画成柱状图,横坐标是段数纵坐标是有效值。 求取有效值的公式我是有的。 我是初学者,所以问题也不难。恳请大神们讲解一下思路还有用到的指令。 |
» 猜你喜欢
论文终于录用啦!满足毕业条件了
已经有21人回复
不自信的我
已经有5人回复
磺酰氟产物,毕不了业了!
已经有4人回复
投稿Elsevier的杂志(返修),总是在选择OA和subscription界面被踢皮球
已经有8人回复
wurongjun
专家顾问 (职业作家)
-

专家经验: +831 - 数学EPI: 9
- 应助: 791 (博后)
- 贵宾: 0.308
- 金币: 24609
- 散金: 310
- 红花: 75
- 帖子: 3004
- 在线: 881.2小时
- 虫号: 1368482
- 注册: 2011-08-14
- 性别: GG
- 专业: 计算数学与科学工程计算
- 管辖: 数学
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
18811406325: 金币+10, ★有帮助 2016-01-09 19:45:56
感谢参与,应助指数 +1
18811406325: 金币+10, ★有帮助 2016-01-09 19:45:56
|
>> help bar BAR Bar graph. BAR(X,Y) draws the columns of the M-by-N matrix Y as M groups of N vertical bars. The vector X must be monotonically increasing or decreasing. BAR(Y) uses the default value of X=1:M. For vector inputs, BAR(X,Y) or BAR(Y) draws LENGTH(Y) bars. The colors are set by the colormap. BAR(X,Y,WIDTH) or BAR(Y,WIDTH) specifies the width of the bars. Values of WIDTH > 1, produce overlapped bars. The default value is WIDTH=0.8 BAR(...,'grouped') produces the default vertical grouped bar chart. BAR(...,'stacked') produces a vertical stacked bar chart. BAR(...,LINESPEC) uses the line color specified (one of 'rgbymckw'). H = BAR(...) returns a vector of patch handles. Use SHADING FACETED to put edges on the bars. Use SHADING FLAT to turn them off. Examples: subplot(3,1,1), bar(rand(10,5),'stacked'), colormap(cool) subplot(3,1,2), bar(0:.25:1,rand(5),1) subplot(3,1,3), bar(rand(2,3),.75,'grouped') See also HIST, PLOT, BARH. Overloaded methods help fints/bar.m |

2楼2016-01-07 22:46:57







回复此楼