필터 지우기
필터 지우기

Making matrix from coordinates

조회 수: 7 (최근 30일)
Ishani Mukherjee
Ishani Mukherjee 2020년 10월 11일
댓글: Ishani Mukherjee 2020년 10월 11일
I have 460 x and y coordinates. How do I make a matrix ? Thanks in advance.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 11일
편집: Ameer Hamza 2020년 10월 11일
See meshgrid()
x; % vector of x-values
y; % vector of y-values
[X, Y] = meshgrid(x, y)
  댓글 수: 5
Ameer Hamza
Ameer Hamza 2020년 10월 11일
Something like this
x = [1,2,3];
y = [2,3,4];
[X, Y] = meshgrid(x, y);
plot(X(:), Y(:), '+')
Ishani Mukherjee
Ishani Mukherjee 2020년 10월 11일
Thanks!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by