What is wrong in my code?

1 Ansicht (letzte 30 Tage)
riki singh
riki singh am 11 Jan. 2023
Kommentiert: riki singh am 12 Jan. 2023
q=readtable('a.txt');
A=q.a;
B=q.b;
C=q.c;
L=length(A);
P=length(B);
S=1;
q.complex=complex(q.d,q.e);
v=reshape(q.complex,L,[]);
X=-10.27:0.1361:10.139;
Y=-10.57:0.1401:10.4366;
v_I=16*ifft2(v.');
v_db=20*log10(v_I);
figure
imagesc(X,Y,v_db.'); grid on
axis equal
axis tight; colormap(hot);
My question is at theory wise v_I(i,j) has to be converted into v_I(e,f) where e=(i^2-j^2)/2*i and f=j and then we have to convert it into a figure. I am not able to this transform.
  5 Kommentare
riki singh
riki singh am 11 Jan. 2023
I hv edited plz check now..
riki singh
riki singh am 12 Jan. 2023
My main aim is once i do this step V_i= 16*ifft2(v.'); I will get as 2D array Next is i have to extract the data and change the values inside v.'matrix into X=u^2 Y=v
And now plot the image wrt v(x,y) which was basically before v(u,v) Just the transformation inside the matrix

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D 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