clc
clear
% take data frm xcl and look for selected area
Amp=xlsread('C:\Users\AMIT\Desktop\CB\excel\4\Cast Billet Amp Data-(4-5).xls');
Th=xlsread('C:\Users\AMIT\Desktop\CB\excel\4\Cast Billet thickness Data-(4-5).xls');
%X=Amp(515:514:131584);
%Y=Amp(2:1:514);
Z=Amp(2:1:514,2:1:256);
T=Th(2:1:514,2:1:256);
%axes('FontSize',20);
%image(Y,X,Z');figure
%axes('FontSize',20);
%imagesc(Y,X,T');figure
for i=1:1:513
for j=1:1:255
if ((Z(i,j)>=80) && (Z(i,j)<=100))
A(i,j)=Z(i,j);
B(i,j)=T(i,j);
else
A(i,j)=0;
B(i,j)=0;
end
end
end
for i=1:1:513
for j=125:1:225
C(i,j)= A(i,j);
D(i,j)= B(i,j);
end
end
axes('FontSize',20);
image(A');figure
axes('FontSize',20);
imagesc(B');figure
for i=1:1:513
for j=125:1:225
if B(i,j)>=6.5 && B(i,j)<=7.0
A4(i,j)=C(i,j);
else
A4(i,j)=0;
end
end
end
axes('FontSize',20);
%imagesc(Y,X,A4');figure
imagesc(A4');
ylim([120 225])
% this A4 is to be divided in to parts (4), and then manually select a area and corresponding amplitude value will be given
I am attaching excel files for help