Filter löschen
Filter löschen

Making matrix from coordinates

7 Ansichten (letzte 30 Tage)
Ishani Mukherjee
Ishani Mukherjee am 11 Okt. 2020
Kommentiert: Ishani Mukherjee am 11 Okt. 2020
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by