how to find row position of value in a column?

322 views (last 30 days)
I want to find the row position of a value in a single-column matrix (with inserting the value), how to do that? thanks for answering before.

Accepted Answer

Image Analyst
Image Analyst on 20 Sep 2017
Try this:
row = find(yourColumnVector == desiredValue);
Adapt by replacing with the actual names and values of your variables.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!