Filter löschen
Filter löschen

Plotting Matrices of Coordiantes

2 Ansichten (letzte 30 Tage)
Michael
Michael am 22 Apr. 2013
I have written a matlab code that generates the x-cooridante of a lot of points into a matrix called X, and similarly a matrix called y. These are both 100x10 matrices. I am having trouble figuring out how to plot all the points into a 2-D plot. It should be a simple solution, but I have done a lot of looking and cannot seem to find what I need. Any help would be much appreciated!

Antworten (1)

Anand
Anand am 22 Apr. 2013
For the matrices X and Y, you can plot as follows:
plot(X(:),Y(:),'r+')
You just convert the matrices to vectors and use the plot command.
  1 Kommentar
Michael
Michael am 22 Apr. 2013
Perfect! Thanks for the quick response.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by