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

1 view (last 30 days)
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};

Answers (1)

Torsten
Torsten on 25 Mar 2023
Edited: Torsten on 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

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!