Question: Using MATLAB Hamework 5-Arrays Hamework 5 Arrays Function Name: sportsBall . The word may exist once or not at all. If the word does not

Using MATLAB Hamework 5-Arrays Hamework 5 Arrays Function Name: sportsBall . TheUsing MATLAB

Hamework 5-Arrays Hamework 5 Arrays Function Name: sportsBall . The word may exist once or not at all. If the word does not appear, the input and output arrays should be identical. Inputs: . If your sclution reccgnizes words that span across several lines, ie. recognizing 'sports 1. (char) An NxN array of words 2. (char) A word to find 3. (char) A character to repace all of the characters in the word in the puzzde below, that is okay. This edge case will not be tested for grading abespo rtsdef Outputs: Hints: 1. (char) An NxN array with the word that was being found replaced with the character Think about how you can use transposing and linearizing to check for the wcrd in the different directicns Background: . Yau wil find the reshape) and strrep)functions useful. As a Georg a Tech engineering student, you aren't the most familiar with sports. You're pretty sure that the hockey final (also known as the World Series) is at Wembley in Atlanta between the Browns and the Yankees next Monday, but some of that could be wrong. Isn't Michael Phelps their star wide quarterback who's known for his awesome serve spike? Your friends keep calling you out for not knowing anything about sports, so you eventually give up on sports, and sit down with a word search. When you open the page, the subject of the puzzle is-you guessed it-sports. Function Description: Given an NxN character array, find the given sports word. This function will take in three inputs an aray, a word to look for, and a character to change that word to "Crass out" the word in the puzzle by replacing it with the given character, and then output the modified puzzle. puzzle- ['snnjk piano wordsport character' randn tests'] puzzleUpdated sportsBall(puzzle, word, character) #1 ano lests' Notes: You don't have to consider diagonals, but must consider the word horizontally forwards and backwards and vertically forward and backwards (the word can read up, down, left or right)

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!