Converting x y coordinates to a 2D matrix

8 visualizaciones (últimos 30 días)
Sowmya MR
Sowmya MR el 18 de En. de 2018
Comentada: Jos (10584) el 18 de En. de 2018
Hi,
I have two vectors: X and Y corresponding to an image. Now if i do plot(X,Y) i get a nice image plot but i want to convert X and Y to a 2D matrix. Can someone please help?
  1 comentario
Jos (10584)
Jos (10584) el 18 de En. de 2018
What does "corresponding to an image" means?
Can you give a small example of some artificial input and expected output?

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 18 de En. de 2018
x = unique(X) ;
y = unique(Y) ;
[X2d,Y2d] = meshgrid(x,y) ;

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by