Re: link all the code




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

.



Relevant Pages

  • Re: link all the code
    ... Looks to me like you should investigate cell arrays. ... imagename = sprintf; ... how to do the loop for it??as you can see..each image use ...
    (comp.soft-sys.matlab)
  • Re: link all the code
    ... Looks to me like you should investigate cell arrays. ... imagename = sprintf; ... change the loop but cannot use..i jz one using one loop ...
    (comp.soft-sys.matlab)
  • Re: link all the code
    ... khoo wrote: ... image..since all image using same loop, how can i do to make ... imagename = sprintf; ... if isempty; error('Quotation server filesystem problems') ...
    (comp.soft-sys.matlab)
  • Re: link all the code
    ... Looks to me like you should investigate cell arrays. ... imagename = sprintf; ... how to make a loop by using cell array?? ...
    (comp.soft-sys.matlab)
  • Re: Annies Eyewear -- Quiz Quilt 25 Puzzle
    ... OLYMPIA ... What TV show's theme song observed, "Sometimes you wanna go where ... What cross, with a loop as its upper vertical arm, was the emblem of ...
    (rec.games.trivia)