Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fourier transform

Subject: fourier transform

From: sonia

Date: 17 Nov, 2010 21:17:04

Message: 1 of 1

Hello,

I want to implementate an optical fourier transform with matlab,
I used tha matrix ABCD method, at the end of my program i write this instruction:
%%%
for m=1:N
    for n=1:N
       syms x y
       fon(m,n)=exp(-1i*pi*2*(sigma./B).*((m.*x)+(n.*y))).*exp(1i*pi.*sigma*(x.^2.+y.^2).*(A./B));
       F(m,n)=int(int(image(m,n).*fon(m,n),x,-inf,+inf),y,-inf,+inf);
       Uout(m,n)=exp(1i*pi*sigma*(m^2+n^2).*(D./B)).*F(m,n);
    end
end

%%
When i exicute the program I have this error:
??? Error using ==> mupadmex
Error in MuPAD command: Invalid index [list];

during evaluation of 'matchNonSingletonLHS'

Error in ==> sym.sym>sym.subsasgn at 1420
            C = mupadmex('mllib::subsasgn',A.s,B.s,inds{:});

Error in ==> abcdtest at 80
       fon(m,n)=exp(-1i*pi*2*(sigma./B).*((m.*x)+(n.*y))).*exp(1i*pi.*sigma*(x.^2.+y.^2).*(A./B));
 
%%%%
can you please helpe me to resolve this problem,
Thanks
Sonia

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us