How to plot a continuous graph as shown in the below graph?
Afficher commentaires plus anciens

7 commentaires
Pratham Shah
le 1 Juin 2023
Hi,
Please mention what kind of data you want to plot.
siet ece
le 1 Juin 2023
Pratham Shah
le 1 Juin 2023
No, I dont want the image of graph. I want to understand the data you are trying to plot.
Dyuman Joshi
le 1 Juin 2023
@siet ece Do you have any data or information through which one can plot this particular graph?
If not, it would be a difficult task to do it manually.
siet ece
le 1 Juin 2023
Dyuman Joshi
le 1 Juin 2023
How did you generate this graph?
siet ece
le 1 Juin 2023
Réponse acceptée
Plus de réponses (1)
t1 = [1 6]; y1 = [1 1];
t2 = [6 7]; y2 = [0.45 0.45];
t3 = [7 8]; y3 = [1 1];
t4 = [8 9]; y4 = [0.4 0.4];
t5 = [9 11]; y5 = [0.25 0.25];
t6 = [11 18]; y6 = [0.41 0.41];
t7 = [18 19]; y7 = [0.5 0.5];
t8 = [19 20]; y8 = [0.68 0.68];
t9 = [20 21]; y9 = [0.2 0.2];
t10 = [21 24]; y10 = [0.75 0.75];
t = [t1,t2,t3,t4,t5,t6,t7,t8,t9,t10];
y = [y1,y2,y3,y4,y5,y6,y7,y8,y9,y10];
plot(t,y)
xlim([0 25])
ylim([0 1.2])
1 commentaire
siet ece
le 1 Juin 2023
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


