I have an array 'J' that I want to plot. Each cell in the array represents the x and y coordinates of a single point. I am not sure how to do the plot

 Respuesta aceptada

Voss
Voss el 26 de Feb. de 2022

0 votos

xy = vertcat(J{:});
plot(xy(:,1),xy(:,2),'.');

2 comentarios

Mahmoud Abbas
Mahmoud Abbas el 26 de Feb. de 2022
Worked perfectly, Thank You!
Voss
Voss el 26 de Feb. de 2022
Excellent, You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2021b

Preguntada:

el 26 de Feb. de 2022

Comentada:

el 26 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by