store iterative solutions to matrix
Mostrar comentarios más antiguos
E=input('\nModulus of Elasticity, E(GPa): ');
L=input('Length of each member, L(m): ');
A=input('Area of c/s, A(m^2): ');
Theta=input('Theta(degree): ');
delta_max=input('Maximum Delta(m): ');
a=sind(Theta);
h=L*a;
delta=0:0.01:delta_max;
del=length(delta);
P_L=zeros(1,del);
for i=1:del
P_L(i)=(2*E*A*10^9*a*a* delta(i))/(L*1000);
end
Need to store all iterative values of P_L as a vector
For E = 70, L=5.41, A=0.0006;delta_max=2; theta=33.69;
Last answer = 9.56 * (10^3)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!