% % Initial values to zero W=0; E=0; I=0; L=0; syms x for y=(-W*x.^2)/(24*E*I).*(6*L.^2-4*L*x+x.^2) Esteel=20000000; Ealuminum=10000000; Etitanium=17000000; E=input('Please choose either Esteel, Ealuminum or Etitanium'); W=input('Choose a value for W'); I=input('Please choose your value for interia'); L=input('Please enter value for length'); fprintf('\n The %g is your value for the load\n',ezplot(x,y)) break end W=0; E=0; I=0; L=0; for Q= W*L.^3/6*E*I Esteel=20000000; Ealuminum=10000000; Etitanium=17000000; E=input('Please choose either Esteel, Ealuminum or Etitanium'); W=input('Choose a value for W'); I=input('Please choose your value for interia'); break end fprintf('\n The %g is your value for the theta\n',Q);

# MATLAB: I do not know how to get the loop to be condensed nor does the plot for function y will display. Here is the code

MATLAB Compiler

###### Related Question

- Matlab Symbol output in live Script
- The while loop is only running two times then it stops
- DNA hard time making a prompt
- How to plot array ? i am using display instruction but i m not able to plot that data on xy plane
- I was writing a equation but this always have an error and i cant run it
- No-Input: Error Checking Problem
- How to save outputs of a loop in vectors to use later ??? urgent please help

## Best Answer