Borrar filtros
Borrar filtros

Making matrix from coordinates

7 visualizaciones (últimos 30 días)
Ishani Mukherjee
Ishani Mukherjee el 11 de Oct. de 2020
Comentada: Ishani Mukherjee el 11 de Oct. de 2020
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.

Respuestas (1)

Ameer Hamza
Ameer Hamza el 11 de Oct. de 2020
Editada: Ameer Hamza el 11 de Oct. de 2020
See meshgrid()
x; % vector of x-values
y; % vector of y-values
[X, Y] = meshgrid(x, y)
  5 comentarios
Ameer Hamza
Ameer Hamza el 11 de Oct. de 2020
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')
Ishani Mukherjee
Ishani Mukherjee el 11 de Oct. de 2020
Thanks!!

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by