Issue in ploting a bar graph using for loop

2 次查看(过去 30 天)
i need to plot a bar graph for set of values. i have used for loop.
for
....
plot(ss,meanDiffX);
xlabel('Tiempo (ms)'); ylabel('Variables');
...
end
untitled.png
I am not getting any errors. But my output figure is blank.
I am expecting a figure in this pattern.
untitled.png
Help me where am i missing. Thanks in advance.
  5 个评论
jeffin
jeffin 2018-11-24
Thanks for your reply @madhan.ravi.
I have got the answer. I should use
bar(ss,meanDiffX); instead of plot(ss,meanDiffX);.
madhan ravi
madhan ravi 2018-11-24
so put it in answer section and accept the answer so that people having the same question will find the answer

请先登录,再进行评论。

采纳的回答

jeffin
jeffin 2018-11-24
Thanks for your reply @madhan.ravi.
I have got the answer. I should use
bar(ss,meanDiffX); instead of plot(ss,meanDiffX);.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by