Plotting a matrix of co-ordinates

4 vues (au cours des 30 derniers jours)
MOLE
MOLE le 29 Jan 2020
I have a bunch of points in 2D as a 2 by 56 matrix, and need to make a 2D plot with these points marked on it showing all these point co-ordinates. How do I achieve it?

Réponse acceptée

David Goodmanson
David Goodmanson le 30 Jan 2020
Modifié(e) : David Goodmanson le 30 Jan 2020
Hi Anmoi,
points = rand(2,56)
plot(points(1,:),points(2,:),'o')
grid on
If you go to the help for plot you will find many other markers and colors to choose from.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by