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

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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 6 月 7 日

0 投票

w = input('Enter w');
mperm = input('Enter mperm');

この質問は閉じられています。

質問済み:

2013 年 6 月 7 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by