From: arvind on
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
"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
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().