Error using bar (line 172) X must be same length as Y.
1 view (last 30 days)
Show older comments
with the example code:
x = 1990;
y = [10 20 30];
bar(x,y)
but I got the error as menitioned in the Title.
is there any solution for it?
3 Comments
Tim Boxall
on 12 Mar 2021
Same for me, using R2017b. I copied the example code exactly and got the same error.
hicham oufettoul
on 19 Mar 2022
Hi dear brother I hope you find the answer, if yes let me know it please, and thank you
Answers (1)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!