————————————–Function which is called————————————–
function [xavg1,xavg,xhr,xvr,xdig] = cameraman_dwt_code1(xr1)
[xavg,xhr,xvr,xdig] = dwt2(xr1,'db3');
xavg1=xavg/255;
————————————–Testbench Code————————————–
x= imread('cameraman.tif');
x1=rgb2gray(x);
xavg11=cameraman_dwt_code1(x1);
imshow(xavg11);
Best Answer