I need help turning this line graph data into a bar graph
Mostra commenti meno recenti
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
1 Commento
KALYAN ACHARJYA
il 25 Apr 2020
Modificato: KALYAN ACHARJYA
il 25 Apr 2020
Any sample data
weeks, weight, weekMid, poundsPerWeek
Data?
Risposte (1)
Walter Roberson
il 25 Apr 2020
ax = plotyy(weeks, weight, weekMid, poundsPerWeek, @bar);
Categorie
Scopri di più su Bar Plots in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!