Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Home Work 1.1 1. Write the command that will create matrix A shown in the format below using colon operator for the first row A=[0

image text in transcribed

image text in transcribed

Home Work 1.1 1. Write the command that will create matrix A shown in the format below using colon operator for the first row A=[0 1 2 3 4 5 6 7] if your K-ID K00789012 0 7 8901 2 2. Now write the command that will access and extract '4' from first row of A' and save it in "B 3. Write the command that will add 'B' with element at location (2,4) of'A and save the result in 4. 5. Extract the row containing your K-ld and save into a new variable called 'kid' What are the dimensions of 'kid'? Hints for HW1.1: Use operator 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 21 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 the element in A on the mth row and nh 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 1t row Write down the dimension of 'kid' eg. m x n which means m rows by n cofumns

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago