PLEASE WANT DRAW A LINE GRAPH OF THE DATA BELOW WITH ATTENUATION ON Y AXIS AND YEAR ON THE X AXIS

1 view (last 30 days)
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

Accepted Answer

Star Strider
Star Strider on 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})

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!