Re: link all the code
- From: "khoo " <jim_khoo@xxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 04:58:01 +0000 (UTC)
Looks to me like you should investigate cell arrays.
numimage = 5;
x = cell(numimage,1);
B = cell(numimage,1);
y = cell(numimage,1);
for K = 1:numimage
imagename = sprintf('image%d.jpg', K);
x{K} = imread(imagename);
B{K} = double(x{K});
y{K} = abs(fftshift(fft2(B{K})));
end
and so on.
how to write the loop?? the error say cell array cannot
using plus..i now wanna using one loop only but in my first
post is using five loop to loop different image but all the
loop is same one
.
- References:
- Re: link all the code
- From: Walter Roberson
- Re: link all the code
- Prev by Date: Re: link all the code
- Next by Date: Re: Simulink Model compare
- Previous by thread: Re: link all the code
- Next by thread: Re: link all the code
- Index(es):
Relevant Pages
|