Hi I have to plot a vector of some sperimental data (Electrical Power measurements). Each data correspond to a time-step. I have already put all the time-steps in another vector. It's possibile to have a plot whit the value of the data in the Y-axis and with the time-steps on the X-axis? Maybe i have to be more clearer, i don't want to plot the time step like (1,2,3, ecc...) i have them in a time format like 12:30:15 (12 is the hour, 30 the minutes, 15 the seconds) And if it' possibile to plot a graph like this, how can i choose the interval with whom matlab plot the information from the time-steps vector? I hope someone can help me Thanks for all.

 채택된 답변

Star Strider
Star Strider 2016년 7월 24일

0 개 추천

There are several ways to plot your x-axis with time and date data. See for example the datetick function. Also, in the plot documentation see: Plot Durations and Specify Tick Format. Another possibility is: Date and Time Arithmetic and Plotting.

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

질문:

2016년 7월 24일

댓글:

2016년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by