Info

This question is closed. Reopen it to edit or answer.

How do I make these two letters the input functions for a lengthy code?

1 view (last 30 days)
Here's my code
g = 9.81;
k = 0.5; %KPa
M = 350; %kg
F = g*M; %N
%Dimensions of Structure
%Sign
b=4;
h=3;
%Beam/Column
H=8;
w =
%Mass of Column per metre
mperm=
Mx = k*(b*h)*(5+(h/2)) + k*((b*h)*w)*((b*h)/2)
Mz = F*((b/2)+k*w)
%Calculation for Axial Compressive Load P
P=F+(H*mperm*g)
%Calculation of Torque Ty about y-axis
Ty=k*(b*h)*(k*b+k*w)
%Calculation of Tranverse Shear in downward direction due to wind)
V=(k*b*h)+(k*H*w)
I'm trying to make w and mperm the input values of the code so that I could generally calculate the necessary information from this code.
Thanks for the help

Answers (1)

Walter Roberson
Walter Roberson on 7 Jun 2013
w = input('Enter w');
mperm = input('Enter mperm');

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!