Question: Create a flow chart to code a function call myFind with the available options in the drawing below. The function is called [I, J]= myFind(M,key)

Create a flow chart to code a function call myFind with the available options in the drawing below. The function is called [I, J]= myFind(M,key) where M is a matrix and key is a scalar. The function looks for every instance in the given matrix, M, where key is located. The outputs are two equally sized column vectors (I and J). I is the numbered row and J is the numbered column where it cn be found. The function looks through the vector by linear indexing.

Create a flow chart to code a function call myFind with the

This block is automatically handled with the for-loop control statement for Rcounter nRows This block is automatically handled with the for-loop control statement for Cecounter 1:nCols EXECUTE [I, Jl myFind( M key initialize outputs pass 1; nRows of rows in M nCols of columns in M M equal at location (Rcounter counter) I pass 1) Rcounter J(pass, 1) Ccounter END output I, J Ccounter 1 Ccounter nCols increment Counter Rcounteer counter nRow increment Rcounter increment pass by 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!