Plotting a cell array

1 visualización (últimos 30 días)
Mahmoud Abbas
Mahmoud Abbas el 26 de Feb. de 2022
Comentada: Voss el 26 de Feb. de 2022
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
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

Más información sobre Line Plots en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by