Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.4 , 1.5 1.4 (20 points) (a) Use a single command to create a row vector (assign it to a variable named b) with 19

1.4 , 1.5
image text in transcribed
1.4 (20 points) (a) Use a single command to create a row vector (assign it to a variable named b) with 19 elements such that b = 12 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 1. Use array 2. Use linspace (b) Create the following matrix by using vector notation for creating vectors with constant spacing and/or the linspace command. Do not type individual elements explicitly. Show the Matlab code and answer 5 10 30 A=600 15 20 25 300 200 100 2.5 3.3333 4.1667 500 400 0.8333 1.6667 0 0 1.5 (20 points) Create three row vectors: a = [7 2 -3 1 0). b=[-3 10 0 7 -2]. c= [1 0 4 6 5] (a) Use the three vectors in a MATLAB command to create a 3x5 matrix in which the rows are the vectors a, b, and c. (b) Use the three vectors in a MATLAB command to create a 5x3 matrix in which the columns are the vectors a, b, and c. (c) Calculate M - ab (d) Is a.*b a legal expression, and why? Write the MATLAB code in a Script file, called hw0105m and then run it on Command Window. Show the Script file and the result in the Command Window, W 35

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Q1 Is this framing appropriate?

Answered: 1 week ago