subject

This activity uses a 3rd party app Though your actity maybe necorded, a refresh may be required to update the banner to the left. Assign middleElement with the element inthe center of squareArray. Assume squareAmay is always an n x n array, where n is odd. Hint elementindex should be rounded to an integer.
Ex: If squareArray is [1, 2, 3:4, 5, 6:7,8, 9]. then middleElement is 5.
1 function middleElement = FindMiddle(squareArray)
2 % FindMiddle: Return the element in the center of squareArray
3 % Inputs: squareArray - n x n input array, where n is odd
4 %
5 % Outputs: selectedData - center element of squareArray
6
7 % Assign elementIndex with location of middle row/col
8 % Hint: Use the size() function to deterimine the dimension of squareArray
9 elementIndex = size(squareArray)
10
11 % Assign middleElement with the center element of squareArray
12 middleElement = squareArray(elementIndex)
13 end
14

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
You know the right answer?
This activity uses a 3rd party app Though your actity maybe necorded, a refresh may be required to u...
Questions
question
Biology, 29.10.2019 14:31
question
Mathematics, 29.10.2019 14:31
question
Mathematics, 29.10.2019 14:31
Questions on the website: 13722362