This is my code for finding normal and shear stress:
sigma_x = 8;
sigma_y = -12;
tau_xy = -6;
theta = [-90:.05:90];
%Normal Stress
sigma_x1 = ((sigma_x + sigma_y)/2)+(((sigma_x – sigma_y)/2)*(cosd(2*theta)))+(tau_xy*(sind(2*theta)));
sigma_y1 = ((sigma_x + sigma_y)/2)-(((sigma_x – sigma_y)/2)*(cosd(2*theta)))-(tau_xy*(sind(2*theta)));
%Shear Stress
tau_x1y1 = -(((sigma_x – sigma_y)/2)*(sind(2*theta)))+(tau_xy*(cosd(2*theta)));
%plot
plot(theta, tau_x1y1),xlabel('Degree of Rotation'), ylabel('Shear Stress'),title('Shear Stress Based on Rotation')
grid on, axis equal
I need to know how to just mark the points where shear stress = 0.
Thank you.
Best Answer