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

2 次查看(过去 30 天)
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

采纳的回答

Star Strider
Star Strider 2016-9-20
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 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by