Issue in ploting a bar graph using for loop

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

madhan ravi
madhan ravi 2018 年 11 月 24 日
because you didn't provide any values?
jeffin
jeffin 2018 年 11 月 24 日
no.. the values are defined in the code. If the values are not defined it will show as an error.
madhan ravi
madhan ravi 2018 年 11 月 24 日
編集済み: madhan ravi 2018 年 11 月 24 日
so upload the values to test because till now your question is vague without datas
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 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGraphics Performance についてさらに検索

タグ

質問済み:

2018 年 11 月 24 日

回答済み:

2018 年 11 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by