Substituting input array into an equation.
古いコメントを表示
I have an input array which looks like this;
while count < Set_data
y = input('Input initial Pressure ')
z = input('Input Temperature ')+273
x=[x y z]
count=count+1;
end
How do i substitute the said array into
Density=y/(0.287*z)
Final_Pressure=-1*Density*10000/2
1 件のコメント
DGM
2021 年 12 月 27 日
Maybe instead of interleaving two variables in the same vector and then trying to figure out how to work around the obstacle that created, just store them separately to begin with.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!