Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One way to enter a matrix in MATLAB is as follows. Suppose we wish to enter the matrix 3 1 4 5 9 8 2

One way to enter a matrix in MATLAB is as follows. Suppose we wish to enter the
matrix
314598260753243
and store it in location a. Then we type a =[ and enter the matrix in rows. We end a row by a semicolon and then input the next row, put a semicolon and so on, ending with ].
16 Do this for the matrix above and also for the vector b =30
6
Now discover what each of the following commands does. Type the commands in MATLAB, then copy the code into an editor, put in some comments as to what the effect of the computation is.
(1).c=[a b]
(2). d=c(3,5)
(3). e=c(2,:)
(4). f = c(:,2)
(5). g = c(:,[135])
(6). c([13], :) = c([31], :)
(7). c(3,:)=5c(3,:)
(8). c(3,:)=c(3,:)+(c(3,1)/c(1,1))c(1,:)
(9). zeros(5,2)
(10). eye(6)

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

Microsoft Outlook 2023

Authors: James Holler

1st Edition

B0BP9P1VWJ, 979-8367217322

More Books

Students also viewed these Databases questions

Question

Address an envelope properly.

Answered: 1 week ago

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago