DSPRelated.com
Forums

how do i execute this code for image compression in matlab?

Started by dictator_satya October 8, 2007
Hi,

I am quite new to matlab and trying to write a function on digital
image compression but i am getting an error message saying..... ???
Strings passed to EVAL cannot contain function declarations.
%Main Routine

function main(RGB, filename)

figure(1)
imshow(RGB)
pause ;

disp('SOURCE CODING ....................');
[H,S,V] =source_encoding(RGB, filename)
disp('SOURCE CODING OVER');
x=source_decoding(filename);
figure(2);
imshow(x)
disp('Over');

Can you please help me out and lemme know where am i going wrong.

Thank you.