Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

DO IN MATLAB; Agiven file contains a 1 0 0 x 1 0 0 matrix of random integers. The matrix is named M . Download

DO IN MATLAB; Agiven file contains a 100x100 matrix of random integers. The matrix is named M. Download and import the data and answer the following questions based on M. a) Find the sum of all the elements in every 4th row, starting with row 4(i.e., rows 4,8,12,.). Your answer should be a scalar value (i.e., add the sum of numbers in every 4th row together).Answer = Answerb) A 4-by-7 sub matrix is created from the elements in rows 5,25,50 and 100 and in columns 4,12,23,46,56,78 and 80. Find the smallest value of this sub matrix.Answer = Answerc) The first 5-by-5 numbers of an example matrix M are shown below. The highlighted 4 adjacent numbers form a square.The sum of the 4 numbers is 63+95+30+44=232.How many such squares (set of 4 adjacent numbers) in the matrix M (the 100-by-100 matrix in data file) add up to more than 250(i.e., their sum is greater than 250)? You should use a nested for loop for this task
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions