plotting using data from a cell array
1 view (last 30 days)
Show older comments
Dear Friends,
i want to automatically draw a graph of marks of students vs their names. students names are in a cell array where as marks are in a vector array. is it possible to draw a graph straight away. Thanks in advance.
0 Comments
Answers (1)
Yona
on 22 Sep 2014
figure
name = {'m1';'m2';'m3';'m4';'m5'};
y = [90,85,88,100,40];
bar(y)
set(gca,'xlabel',name)
2 Comments
See Also
Categories
Find more on Line Plots 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!