Respuesta aceptada

Sam Chak
Sam Chak el 12 de Mayo de 2022
Editada: Sam Chak el 12 de Mayo de 2022

1 voto

Suggest a simple solution:
t1 = 70:81;
t2 = 81:85;
t3 = 85:100;
plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, 'b')

Más respuestas (1)

Vartika Agarwal
Vartika Agarwal el 12 de Mayo de 2022

0 votos

I want to draw marker at particular point
73,77,81,85,89,93,100

3 comentarios

Sam Chak
Sam Chak el 12 de Mayo de 2022
Alright, can do this way, but you are encouraged to explore how to display the plot.
d = [73, 77, 81, 85, 89, 93, 100];
plot(d, d, 'd')
hold on
t1 = 70:81;
t2 = 81:85;
t3 = 85:100;
plot(t1, t1, 'b', t2, t2, 'b--', t3, t3, 'b')
hold off
Vartika Agarwal
Vartika Agarwal el 12 de Mayo de 2022
Thanks sir for your help
Sam Chak
Sam Chak el 12 de Mayo de 2022
Hi @Vartika Agarwal, don't mention it. Have a nice day!

Iniciar sesión para comentar.

Categorías

Productos

Etiquetas

Preguntada:

el 12 de Mayo de 2022

Comentada:

el 12 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by