MATLAB: Issue in ploting a bar graph using for loop

MATLABplot

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.

Best Answer

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