SHOWDATAVAL shows X and Y Label in plot [figdata] = showdataval(figs,xyonly); D = [xz(find(xzele(:,1) == 1.9),2) -porar(find(xzele(:,1) == 1.9),totalstep)] figure(2);plot(D(:,1),D(:,2),'+-r');hold on figure(2);plot(D(:,1),D(:,2)*2,'+-b');hold on figure(2);plot(D(:,1),D(:,2)*3,'+-b');hold on figs = gcf; xyonly = 0; % for only y cordinate to show xyonly = 1; % for both xy cordinate to show xyonly = 2; % for only x cordinate to show showdataval [figdata] = showdataval; In figdata, data stored as (FigureNo.,No of Plots,xdata,ydata) Where findxdata(1:size(figdata,3),1:size(figdata,4)) = figdata(1,1,:,:); if nargin == 0, figs = get( 0, 'child' ); end if nargin < 2, xyonly = 0; % for only y cordinate to show end Rezaul, 2004