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.

 Réponse acceptée

Star Strider
Star Strider le 24 Juil 2016

0 votes

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.

Plus de réponses (1)

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by