No BSD License
-
...
-
...
-
...
-
...
-
...
-
...
-
...
-
[A,Qx,K,ybar]=cbprop(x,y)
-
[Flag]=inout(X,Y,Line)
-
[IsectErr,Xclip,Yclip]=intrse...
-
[Ixbar,Iybar,Ixybar]=shftprop...
-
[Key,Imax,Imin,Iavg, ...
-
[Key,Smax,Smin,Savg,Tmxmn, ...
-
[L,E,I,no_defl_pts, ...
-
[NewAngle]=flpang(Angle,DegRa...
-
[NoClipPts,Xclip,Yclip]=refpo...
-
[NoNewPts,IsetClipPoly,NoInte...
% [NoNewPts,IsetClipPoly,NoInterpPts,Xclip, ...
-
[V,M,EItheta,EIdelta,left_rea...
-
[disp,react]=solve ...
-
[t]=findt(x,y,yplane)
-
[x,y]=circle(no_pts,x0,y0,rad...
-
arrows(Adirection,Atype,Angle...
-
ff=memfor(dd,x,y,Area,Emod,in...
-
genprint(fname,append)
% genprint(fname,append)
-
k=elmstf(x,y,Area,Emod,inode,...
-
polarstr(theta,rho,line_style)
% polarstr(theta,rho,line_style)
-
prplot(Sigma_max,Sigma_min, ....
-
stif=asmstf(x,y,Area,Emod,ino...
% stif=asmstf(x,y,Area,Emod,inode,jnode)
-
strangpl(Sigma_x,Sigma_y,Tau_...
-
axdefl.m
-
bimetal.m
-
cbeamex.m
-
flbolts.m
-
genbolts.m
-
hooke.m
-
indaxial.m
-
japprox.m
-
kern.m
-
multirod.m
-
mxnorex.m
-
propex.m
-
prstrex.m
-
rbar1.m
-
rbar2.m
-
rosette.m
-
shcenter.m
-
shrcon.m
-
shrstr1.m
-
shrstr2.m
-
singspan.m
-
strglex.m
-
super.m
-
truss.m
-
trussrun.m
-
tworods.m
-
View all files
|
|
| [t]=findt(x,y,yplane) |
function [t]=findt(x,y,yplane)
%
% [t]=findt(x,y,yplane)
% ~~~~~~~~~~~~~~~~~~~~~
% This function calculates the thickness
% at a plane previously used to clip a
% polygon.
%
% x - vector of area x coordinates
% y - vector of area y coordinates
% yplane - the y coordinate which defines
% the elevation where the thickness
% is found. This should the plane
% previously used by the clipping
% algorithm for clipping.
%
% t - thickness
%
% User m functions called: none
%----------------------------------------------
Epsilon=1.0e-8; % Value for determining zero
t=0; Npts=length(x);
for i=1:Npts
j=i+1;
if i == Npts, j=1; end;
testi=abs(y(i)-yplane);
testj=abs(y(j)-yplane);
if (testi < Epsilon) & (testj < Epsilon)
t=t+(x(j)-x(i));
end
end
|
|
Contact us at files@mathworks.com