Microstructural And Mechanical Properties Of Human Ribs Joseph
Microstructural And Mechanical Properties Of Human Ribs Joseph
Microstructural And Mechanical Properties Of Human Ribs Joseph
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
%angle offset with horizontal axis for x axis created by the<br />
two datum points<br />
offset=zeros(1,8);<br />
for i=1:8<br />
offset(i)=(atan(line12(i,2)/line12(i,1))+(offsetdeg*pi/180));<br />
end<br />
i=0;<br />
%rot1 through rot 8 are the rotation matrices for each image<br />
for i=1:8<br />
rot{i}=[cos(offset(i)),sin(offset(i)),0;sin(offset(i)),cos(offset(i)),0;0,0,1;0,0,0]<br />
;<br />
end<br />
i=0;<br />
%Homogeneous Transform: rotates and moves individual image<br />
axis to the reference plane (0,0)<br />
transdatum1=zeros(8,4);<br />
transdatum1(:,1)=datum1(:,1);<br />
transdatum1(:,2)=datum1(:,2);<br />
transdatum1(:,4)=1;<br />
for i=1:8<br />
trans{i}=[rot{i},transdatum1(i,:)'];<br />
end<br />
for j=1:8<br />
ozeros{j}=zeros(length(coorall{j}),1);<br />
oones{j}=ones(length(coorall{j}),1);<br />
coorall{j}=[coorall{j},ozeros{j},oones{j}];<br />
end<br />
% New osteon coordinates with repect to 0,0 axis<br />
for i=1:8<br />
osteoncoor{i}=(trans{i}*coorall{i}');<br />
end<br />
oscoor1=osteoncoor{1}';<br />
oscoor1=[oscoor1(:,1),oscoor1(:,2)];<br />
frow=min(oscoor1(:,1))-100;<br />
73