I have a excel file having data at each cell, that is being converted to image, this image is to be partitioned in 4 equal images, now in this image i'll select a area which should tell the data values at that portion
Show older comments
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');
Z=Amp(2:1:514,2:1:256); % rows nd columns
T=Th(2:1:514,2:1:256); % rows nd columns
for i=1:1:513
for j=1:1:255
if ((Z(i,j)>=60) && (Z(i,j)<=100)) % amp values only in this range
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(C');figure
axes('FontSize',20);
imagesc(D');figure
for i=1:1:513
for j=1:1:255
if B(i,j)>=6.5 && B(i,j)<=7.0 % this thick range is our area of interest
A4(i,j)=C(i,j);
else
A4(i,j)=0;
end
end
end
% after this I have to section the image of A4 in 4 equal parts
% in each image where I select I should get the Amp data of that area or point ( like crop)
1 Comment
AMIT VERMA
on 4 Feb 2015
Accepted Answer
More Answers (0)
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!