Computers and Technology

2D array indexing: Finding the center element of a square array Assign middleElement with the element in the center of squareArray. Assume squareArray is always an n times n array, where n is odd. Ex: If squareArray is [1, 2, 3; 4, 5, 6; 7, 8, 9], then middleElement is 5. function middleElement = FindMiddle(squareArray) % FindMiddle: Return the element in the center of squareArray % Inputs: squareArray - n times n input array, where n is odd % % Outputs: selectedData - center element of squareArray % Assign elementIndex with location of middle row/col elementIndex = 0; % Assign middleElement with the center element of squareArray middleElement = 0; end Run Your Solution Code to call your function when you click Run

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:30, josephvcarter
Who invented the tv .hint it was 2 people
Answers: 1
image
Computers and Technology, 23.06.2019 01:50, rhonda45801
Free points just awnser this. what should i watch on netflix
Answers: 2
image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, juliajordan427
Best laptops for college [$100-$500 range]?
Answers: 2
Do you know the correct answer?
2D array indexing: Finding the center element of a square array Assign middleElement with the elemen...

Questions in other subjects: