Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The same concept can be used to output the stress at 0.5, 1.0, and 1.5 cms. We know that since bending stress sigma_x increments by 0.1 each time, we can pull out the values of sigma_x corresponding to the correct column numbers (1, 6, and 11)when ri= 1 cm. Try this command out and see if it makes sense.

fprintf('The values of the stress are:\n \t %3.2f MPa \t When ri = %3.2f cm, ',ri(6));
fprintf('sigma_x = %3.2f MPa\t %3.2f MPa.\n\n',sigma_x(1), sigma_x(6), sigma_x(11));

Go to Step 6: Plot σx vs. ri, Take 4: Functions

...