필터 지우기
필터 지우기

Plotting Matrices of Coordiantes

조회 수: 2 (최근 30일)
Michael
Michael 2013년 4월 22일
I have written a matlab code that generates the x-cooridante of a lot of points into a matrix called X, and similarly a matrix called y. These are both 100x10 matrices. I am having trouble figuring out how to plot all the points into a 2-D plot. It should be a simple solution, but I have done a lot of looking and cannot seem to find what I need. Any help would be much appreciated!

답변 (1개)

Anand
Anand 2013년 4월 22일
For the matrices X and Y, you can plot as follows:
plot(X(:),Y(:),'r+')
You just convert the matrices to vectors and use the plot command.
  댓글 수: 1
Michael
Michael 2013년 4월 22일
Perfect! Thanks for the quick response.

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by