Info
此问题已关闭。 请重新打开它进行编辑或回答。
add text to value of a plot, part 3
1 次查看(过去 30 天)
显示 更早的评论
I have a spreadsheet
column 1: January 3,4,5,...
column 2: 1,2,3,...
column 3; temperature of January 3,4,5,...
I would like to have a plot of
x-axis Day 1 (January 3), Day 2 (January 4),...
y-axis Temperature
0 个评论
回答(1 个)
Sai Sri Pathuri
2020-5-29
plot(readMatrixOutput(:,2)) % Using second column of matrix as it has temperature values
% Change the labels of x-axis
xticklabels({'Day 1 (January 3)','Day 2 (January 4)','Day 3 (January 5)'})
2 个评论
Sai Sri Pathuri
2020-6-2
You may try datetick function. I am not sure of Day 1 (January 3) format, but you can generate January 3 format automatically
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!