axis mapping

Hi Matlabers,
I have an intensity profile obtained after fft2 an aperture function. It is in Kx-Ky plane. I need to map both Kx and Ky to x and y so that the intensity profile in x-y plane. The relationship between Kx and x, Ky and y are just Kx=Constant*x and Ky=Constant*y. Same constant. So basically a scaling of axis. But because the intensity profile is a 2048 by 2048 matrix, I don't know how to map the axes.
Can anyone help me please?

답변 (1개)

Andrew Newell
Andrew Newell 2011년 4월 25일

0 개 추천

You seem to be asking for
x = Kx/Constant;
y = Ky/Constant;
which will work just as written if Kx and Ky are any kind of numerical array and Constant is a scalar.

댓글 수: 2

Kevin
Kevin 2011년 4월 25일
Hi Andrew,
Thank you for the reply.
No...The intensity profile is a matrix. The elements of the matrix is the intensity. I use imshow so that an intensity profile image is shown. Even though right now it's in Kx-Ky plane, I cannot just divide the matrix by a constant because this way what I am really changing is the intensity elements, not the scaling.
Andrew Newell
Andrew Newell 2011년 4월 25일
Sorry - now I see your reference to scaling the axis. By this I presume you mean the color scale, which you can do using CAXIS.

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

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2011년 4월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by