how to write name on plotted graph?
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hi all:
i want to plot these three graphs in matlab such that name of each graph will be on graph like below figure.
p=[123 456 344 333 667 899 565 546 688 998 765 467]
T=[30 45 55 66 77 54 32 34 25 70 12 34]
m=[1.00 2.00 2.50 4.21 3.00 2.32 5.43 6.75 6.57 6.45 7.89 9.80]
figure
plot(p)
hold on
plot(T)
hold on
plot(m)
p=power
T=temperature
m=mass
i want to write name on each graph .
thanks
0 comentarios
Respuestas (1)
KSSV
el 25 de Oct. de 2020
Read about legend.
p=[123 456 344 333 667 899 565 546 688 998 765 467]
T=[30 45 55 66 77 54 32 34 25 70 12 34]
m=[1.00 2.00 2.50 4.21 3.00 2.32 5.43 6.75 6.57 6.45 7.89 9.80]
figure
plot(p)
hold on
plot(T)
hold on
plot(m)
legend("Power","Temperature","mass")
9 comentarios
KSSV
el 26 de Oct. de 2020
You have to read the documentation. You can specify the position like up/ down/ center etc....read the doc.
Ver también
Categorías
Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!