Professional Documents
Culture Documents
Matlab Slope Stability: On '-R' '-R' 'Distance (M) ' 'Elevation (M) ' Off
Matlab Slope Stability: On '-R' '-R' 'Distance (M) ' 'Elevation (M) ' Off
Matlab Slope Stability: On '-R' '-R' 'Distance (M) ' 'Elevation (M) ' Off
%% Other parameters
hs = ytop-ybot; % Height at each node
havg = (hs(1:end-1)+hs(2:end))/2; % 5) Average height of each slice
xavg = abs(((x(1:end-1)+x(2:end))/2)-Xc); % midpoint distance of each slice
dx = (xmax-xmin)/(ns-1); % Width of each slice
yb = (diff(ybot));
alpha = rad2deg(atan2(yb,dx)); % Slice angle. With atan2 the sign is clear.
sal = sind(alpha);
cal = cosd(alpha);
A = dx.*havg; % 6) Area of each slice.
W = G*A; % 7) Weight of each slice.
s= R*sal; % offset f for non-circular slip surfaces
l = dx./cal; % 12) Length of the bottom of the slice, assuming straight
u = 0;
end
fSM=FSM'
fSF=FSF'
figure(2)
plot(y,fSM,'-r',y,fSF,'-b')