p=1029*10^3; pnull=1029; g=9.81; H=0; while H<40 if H==25 H=30; else H=H+5; P=(pnull)+(p*g*H); T_verdi = table(H,P); continueendenddisp(T_verdi)
MATLAB: How do i get the loop to save the values to a table (disp)
while
Related Question
- How to change this iteration to a for loop version
- Parallel patternsearch influenced by starting point
- I keep getting an error saying index exceeds matrix dimensions
- I cant put the loop output in a matrix format. I want to put the loop output (p) as a vector or matrix in order to plot all the outputs later.
Best Answer