How can I find the index number for a given value in the matrix?

1 view (last 30 days)
I am using atmosisa to find Pressure values till a given altitude. For a certain height I want to know what number does it lie on in the matrix so I can find see the pressure at that height.
height=0:1000:21000
[~, ~, P, ~]= atmosisa(height);
x=2/3*h;
height(n)=x;
How do I find n?

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!