How to change xlabel on contour
조회 수: 19 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226308/untitled.jpeg)
댓글 수: 0
답변 (1개)
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");
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!