フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

hi i have a problem in running the loop for my code given below

1 回表示 (過去 30 日間)
juveria fatima
juveria fatima 2018 年 7 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
the problem is it is taking s value only as p i.e 512 i wanted to run for the range s=1 to 512, so as to get q as 512 values each for which of s value . I(:,:,1) r channel for lena image
ya=((1+(I(:,:,1).^2)));
p=512;
for s=1:p
Ya=ya.^(s);
k= fft2(allpixel);
f=abs(fft2(allpixel)).^2;
q=Ya.*f;
imshow(q,[])
total=(1/2*pi).*sum(sum(q));
end
  7 件のコメント
juveria fatima
juveria fatima 2018 年 7 月 25 日
i think now my doubt is clear please help me to run the loop for s=1:512 range
Stephen23
Stephen23 2018 年 7 月 25 日
@juveria Fatima: you need to preallocate the output array and then use indexing in the loop.

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by