Where is the number that you want to find? - MATLAB Cody - MATLAB Central

Problem 43655. Where is the number that you want to find?

Difficulty:Rate

For a given matrix A, find where the input number x appears. Do this task by returning the vector which contains the row and the column as its element

Example

 A = [1 5 6 7]
 x = 7
 output = [1 4]

Solution Stats

57.65% Correct | 42.35% Incorrect
Last Solution submitted on Nov 23, 2024

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers87

Suggested Problems

More from this Author7

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page