How to change xlabel on contour

17 次查看(过去 30 天)
Mr noobys
Mr noobys 2019-6-25
Hi guys
so i have a plot contour from matrix. the x axis of the contour is time sample. i want to change it to second. how to do it?
im using this code but didnt work
dt=1/fs
ts=0:dt:(length(data)*dt)-dt;
contour(wt,ts);
untitled.jpg

回答(1 个)

Santanu Roy
Santanu Roy 2020-12-3
dt=1/fs
ts=0:dt:(length(data)*dt)-dt;
contour(wt,ts);
Just add this line after the plot line.
xlabel("second");

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by