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

1 visualizzazione (ultimi 30 giorni)
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};

Risposte (1)

Torsten
Torsten il 25 Mar 2023
Modificato: Torsten il 25 Mar 2023
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

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by