From: arvind on 4 Apr 2010 03:23 i cant seem to set the input folder. i created a folder named (in) with a jpg pic in it. then i code this function [im]=Compr(infile,coeff,outfile) %input [a,map1]=imread('in'); subplot(2,1,1), imshow(a,map1) my error msg is Error in ==> Compr at 3 [a,map1]=imread('in');
From: us on 4 Apr 2010 04:25 "arvind " <vin-petrol(a)hotmail.com> wrote in message <hp9eoo$lqt$1(a)fred.mathworks.com>... > i cant seem to set the input folder. > > i created a folder named (in) with a jpg pic in it. then i code this > > function [im]=Compr(infile,coeff,outfile) > %input > [a,map1]=imread('in'); > > subplot(2,1,1), imshow(a,map1) > > > my error msg is > Error in ==> Compr at 3 > [a,map1]=imread('in'); and the error message(?)... in general, think then post... us
From: Walter Roberson on 4 Apr 2010 11:06 On 10-04-04 2:23 AM, arvind wrote: > i cant seem to set the input folder. > > i created a folder named (in) with a jpg pic in it. then i code this > > function [im]=Compr(infile,coeff,outfile) > %input > [a,map1]=imread('in'); You cannot imread() an entire folder, only a single file. If you need to find out which files are in the folder 'in', use dir().
|
Pages: 1 Prev: how to choose random rows from a matrix Next: A question of Gaussian Smooth |