Effacer les filtres
Effacer les filtres

Making matrix from coordinates

7 vues (au cours des 30 derniers jours)
Ishani Mukherjee
Ishani Mukherjee le 11 Oct 2020
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.

Réponses (1)

Ameer Hamza
Ameer Hamza le 11 Oct 2020
Modifié(e) : Ameer Hamza le 11 Oct 2020
See meshgrid()
x; % vector of x-values
y; % vector of y-values
[X, Y] = meshgrid(x, y)
  5 commentaires
Ameer Hamza
Ameer Hamza le 11 Oct 2020
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')
Ishani Mukherjee
Ishani Mukherjee le 11 Oct 2020
Thanks!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by