Answered step by step
Verified Expert Solution
Link Copied!

Question

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 to Expert-Tailored 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

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Identify the elements that make up the employee reward package.

Answered: 1 week ago

Question

Understand the purpose, value and drawbacks of the interview.

Answered: 1 week ago