Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MY K-ID is = K00447935 MY K-ID is = K00447935 Create one script to answer questions for HW 1.1 and 1.2 Home Work 1.1 1.

image text in transcribed

MY K-ID is = K00447935

image text in transcribed

MY K-ID is = K00447935

Create one script to answer questions for HW 1.1 and 1.2 Home Work 1.1 1. Create matrix A shown in the format below using colon operator for the first row, 40 1 2 3 4 5 6 2. Use one command to extract '4' from first row of variable 'A' and save it in a new variable 'B 3. Use one command that will add 'B, with element at location (2,4) of A' and save the result in 4. Extract the row containing your K-ld and save into a new variable called 'kID 5. Add a comment to specify the dimensions of variable 'kID? Hints for HW1.1: Useoperator to create the first row of A then switch to the next row using and then define the numbers of your K-ID separating them using comma,or spaces. eg. A-[m:n:1 2] Find the row and column number in which '4' is location in A, then form the index pair to address that location. eg. A(m,n) is an element in A on the mth row and nth column Add number at location (2,4) of A to B. eg. A(m,n)+B Access all elements only in the 2nd row and extract them to 'kID' eg. A(1,:) will access 1st row . write down the dimension of 'kID, using %. eg. % m x n which means m rows by n columns Create one script to answer questions for HW 1.1 and 1.2 Home Work 1.1 1. Create matrix A shown in the format below using colon operator for the first row, 40 1 2 3 4 5 6 2. Use one command to extract '4' from first row of variable 'A' and save it in a new variable 'B 3. Use one command that will add 'B, with element at location (2,4) of A' and save the result in 4. Extract the row containing your K-ld and save into a new variable called 'kID 5. Add a comment to specify the dimensions of variable 'kID? Hints for HW1.1: Useoperator to create the first row of A then switch to the next row using and then define the numbers of your K-ID separating them using comma,or spaces. eg. A-[m:n:1 2] Find the row and column number in which '4' is location in A, then form the index pair to address that location. eg. A(m,n) is an element in A on the mth row and nth column Add number at location (2,4) of A to B. eg. A(m,n)+B Access all elements only in the 2nd row and extract them to 'kID' eg. A(1,:) will access 1st row . write down the dimension of 'kID, using %. eg. % m x n which means m rows by n columns

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

What is Aufbau's rule explain with example?

Answered: 1 week ago