Need help in creating a script without using for loops.
Show older comments

I am trying to write a scrpt without using for loops. Attach is the scripts with for loops. They are for Q3a and Q3b.


4 Comments
KSSV
on 25 Sep 2020
Home Work......what have you attempted?
matthew choo
on 25 Sep 2020
KSSV
on 25 Sep 2020
Don't show your image as a image snippet....copy your code here.
matthew choo
on 25 Sep 2020
Answers (1)
David Hill
on 25 Sep 2020
N=length(x);
Xk=sum(x.*exp((-1i*2*pi/N*(0:N-1)).*(0:N-1)'),2);
Categories
Find more on Image Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!