I have these 3 columns and I want to divide p/z and put the p/z values in a new columns

1 回表示 (過去 30 日間)
Abdullah Gamal
Abdullah Gamal 2023 年 3 月 25 日
編集済み: Torsten 2023 年 3 月 25 日
p={2080,1885,1620,1205,888,645};
z={0.759,0.767,0.787,0.828,0.866,0.900};
gp={0,6.873,14.002,23.687,31.009,36.207};

回答 (1 件)

Torsten
Torsten 2023 年 3 月 25 日
編集済み: Torsten 2023 年 3 月 25 日
p=[2080,1885,1620,1205,888,645];
z=[0.759,0.767,0.787,0.828,0.866,0.900];
gp=[0,6.873,14.002,23.687,31.009,36.207];
new_row = p./z
new_row = 1×6
1.0e+03 * 2.7404 2.4576 2.0584 1.4553 1.0254 0.7167

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by