How do i turn a line graph into a bar graph?
18 views (last 30 days)
Show older comments
How can I turn this data into a bar chart?
figure('Color', [1, 1, 1]) % New figure
ax = plotyy(weeks, weight, weekMid, poundsPerWeek); % Save axes
xlabel(ax(1), 'Weeks') % Label x-axis of left axis
ylabel(ax(1), 'Fetal weight (lbs)') % Label y-axis of left axis
ylabel(ax(2), 'Fetal growth rate (lbs/wk)') % Label y-axis of right axis
title('Characterization of fetal weight during pregnancy') % Title one of the axes
0 Comments
Answers (1)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!