PLEASE WANT DRAW A LINE GRAPH OF THE DATA BELOW WITH ATTENUATION ON Y AXIS AND YEAR ON THE X AXIS
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hassan USMAN
le 20 Sep 2016
Réponse apportée : Star Strider
le 20 Sep 2016
S/N ATTENUATION(dB) MONTH
1 12 JANUARY,2011
2 17 FEBRUARY,2011
3 18 MARCH,2011
4 14 APRIL,2011
5 11 MAY,2011
6 08 JUNE,2011
7 18 JULY,2011
PLEASE WANT TO PLOT THE LINE GRAPH OF THE ABOVE DATA
0 commentaires
Réponse acceptée
Star Strider
le 20 Sep 2016
THIS WORKS:
ColTitles = {'S/N' 'ATTENUATION(dB)' 'MONTH'};
DataCell = {1 12 'JANUARY,2011'
2 17 'FEBRUARY,2011'
3 18 'MARCH,2011'
4 14 'APRIL,2011'
5 11 'MAY,2011'
6 08 'JUNE,2011'
7 18 'JULY,2011'};
Mos = datetime(DataCell(:,3), 'InputFormat', 'MMMM,yyyy');
AttdB = cell2mat(DataCell(:,2));
figure(1)
plot(Mos, AttdB, ':bp')
grid
xlabel(ColTitles{3})
ylabel(ColTitles{2})
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!