PLOTTING THE GIVEN VALUES
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
bagya vivekanandhan
le 6 Fév 2021
Modifié(e) : Cris LaPierre
le 6 Fév 2021
Hi all,
I am trying to plot four given values on matlab.
the values are
t = 0;
ta = 0.63;
tb = 0.71;
tc = 0.5;
Could anybody advice how can this been plotted on matlab?
It's been a long time I've used matlab, and I have lost the touch of the commands.
Thanks in advacne for those who oculd help.
5 commentaires
Réponse acceptée
Cris LaPierre
le 6 Fév 2021
Modifié(e) : Cris LaPierre
le 6 Fév 2021
Based on what you've shared, I'd probably do the following.
t = 0;
ta = 0.63;
tb = 0.71;
tc = 0.5;
plot([t,ta,tb,tc])
Y values are the 4 values you have provided. Since no X values were provided, index number is used - the first y value is assigned the x value of 1, the 2nd gets and x value of 2, etc.
0 commentaires
Plus de réponses (1)
Jos Jordan
le 6 Fév 2021
Given that:
t = [0, 0];
ta = [0.63, 0.63];
tb = [0.71, 0.71];
tc = [0.5, 0.5];
you could then set
x = [0, 0.63, 0.71, 0.5];
x = y;
plot(x,y);
and then use the property inspector to play around until you make it look as you want to.
Voir également
Catégories
En savoir plus sur Graphics Performance dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
