PLEASE WANT DRAW A LINE GRAPH OF THE DATA BELOW WITH ATTENUATION ON Y AXIS AND YEAR ON THE X AXIS
1 次查看(过去 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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!