i have a vector of drag coefficients im using as inputs for an equation. i have determined which gives the largest value. how do i display the drag coefficient used to get this value?
1 view (last 30 days)
Show older comments
i have a vector of drag coefficients im using as inputs for an equation. i have determined which gives the largest value. how do i display the drag coefficient used to get this value?.the teacher said i should use a max with two output values indexing
0 Comments
Answers (2)
Walter Roberson
on 30 Jan 2014
[maxvalue, indexofmax] = max(YourComputedVector);
YourDragVector(indexofmax)
0 Comments
See Also
Categories
Find more on Logical 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!