Effacer les filtres
Effacer les filtres

plotting a graph using matlab

1 vue (au cours des 30 derniers jours)
Vidhya Dharshini
Vidhya Dharshini le 5 Fév 2014
Commenté : Vidhya Dharshini le 13 Fév 2014
I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.

Réponse acceptée

Mischa Kim
Mischa Kim le 5 Fév 2014
Modifié(e) : Mischa Kim le 5 Fév 2014
Try something like:
t = 0:5:100;
x = sin(t);
plot(t,x,'*')
xlabel('time in s')
ylabel('my y axis')
title('my title')
where x would represent your data. Make sure that the length of your time vector equals the length of your data vector.
  1 commentaire
Vidhya Dharshini
Vidhya Dharshini le 13 Fév 2014
Thank you. It worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by