Question: MATLAB, plz don't use loop(if, for, while)/ conditionals Input: 1. (char) NxM array of characters 2. (char) The character being searched for Output: 1. (double)

MATLAB, plz don't use loop(if, for, while)/ conditionals
Input: 1. (char) NxM array of characters 2. (char) The character being searched for Output: 1. (double) 11 vector of the row index 2. (double) 11 vector of the column index Skills Covered: - Searching for a vlaue in an array - Converting linear coordinates to row/column coordinates - Linear indexing and reshaping Function Description: You are given an array of charcters and a target character to locate within that array. Write a function that returns the row and column coordinates of the target value. Note(s): - The find() function is banned - No conditional (e.g. if or switch) or iteration (e.g. for or while) statements can be used to solve this problem. If they are used, you will receive zero credit for this problem. - You are guaranteed that the target character is in the array. - You are guaranteed that there is only one occurance of the target character in the array Hint(s): - The strfind(), reshape(), size(), ceil() or floor(), and mod() or rem() functions may be useful Supporting Problems: - Level 2 - whichRow - Level 2 - whichCol - Level 1 - isln Examples: x=[DfGh;MlKj;UStv][row,col]=wherelslt(x,t)row=3col=3 x=[123;%$;456;abc][row,col]=wherelslt(x,%)row=2col=1 x=[78A&;Y1$;2+3==][row,col]=wherelslt(x&)row=1col=4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
