Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE DOWN THE CODE + THE OUTPUTS OR TAKE A SCREENSHOT 2. Vector variables. Make the following variables a. aVec 3.14 15 9 26) 2.71

image text in transcribed

WRITE DOWN THE CODE + THE OUTPUTS OR TAKE A SCREENSHOT

2. Vector variables. Make the following variables a. aVec 3.14 15 9 26) 2.71 28 182 c. cVec [S 4.8 d. dVec-[10 10 -48 -5] (all the numbers from 5 to-5 in increments of-0.2) (logarithmically spaced numbers between 1 1 l010 and 10, use logspace, make sure you get the length right!) epec = Hello (ere is a string, which is a vector of characters) e. 3. Matrix variables. Make the following variables a. aMat-.. a 9x9 matrix full of 2's (use ones or zeros) b. bMat0 5 0 a 9x9 matrix of all zeros, but with the values ..01 1 2 3 4 5 4 3 2 1on the main diagonal (use zeros, diag) 1 . 91 2 12 .. 92 a 10x10 matrix where the vector 1:100 runs down the 10 20 100 columns (use reshape). NaN NaN NaN NaN d. dMat=| NaN NaN NaN NaN! a 3x4 NaN matrix (use nan) NaN NaN NaN NaN 13 -15 22 10-87 e. eMat= f. Make Mat be a 5x3 matrix of random integers with values on the range -3 to 3 (use rand and floor or ceil) Matrik equations. Using the variables created in 2 and 3, solve the equations below. Use matrix operators. 6. a. xMat (aVecbVec)aMat b. vMa! = bVec"alec , note that this is not the same as aVec.bVec c. 2Mat=leMarl (aMat-bMat)', where lcMat! is the determinant of cMar, and T again indicates the transpose (use det)

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions