I have an image displayed which is 742*400 matrix. i need to convert this image into cartesian. for which i need to know the x and y values to be applied in the following formula r= sqrt( (x-x0)^2+(y-y0)^2). now how do i know the x and y values from the matrix?

답변 (1개)

Chad Greene
Chad Greene 2014년 8월 6일

0 개 추천

The x and y values may very well be the dimensions of the matrix, so from 1 to 742 in one direction and 1 to 400 in the other direction. You could make zero the center by subtracting 742/2 in one dimension and 400/2 in the other dimension.
Also, it's hard to know with the information you've given, but this might help: http://www.mathworks.com/matlabcentral/fileexchange/47238-impolar-m

댓글 수: 1

thirumagal jayaraman
thirumagal jayaraman 2014년 8월 6일
편집: thirumagal jayaraman 2014년 8월 6일
119 56 34 67
123 45 67 89
120 45 87 90
14 54 32 12
this kind of matrix (742 * 400) i get in workspace from this i need to use x and y values in the above mentioned formula

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

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

질문:

2014년 8월 6일

편집:

2014년 8월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by