Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use matlab please In MATLAB Script file HW3P1, using format short g, do the following: a. Define the variables d = 4.3,4 = 3.14, s

use matlab please image text in transcribed
In MATLAB Script file HW3P1, using format short g, do the following: a. Define the variables d = 4.3,4 = 3.14, s = 0.25 then use them to create a row vector Vr that has the following elements: d2, 9, sin(q),qs. b. Create a variable Vc that is a column vector with the following elements: 70.75 5.21.7, 0.247 % 103, V90, tan(91/12), cos? 15 and 0.116 c. Use the linspace in a single command to create a variable H that is a row vector with eight equally spaced elements in which the first element is 68 and the last element is 12. d. Use the linspace in a single command and the transpose to create a column vector (assign it to a variable named FOURS) with nine elements that are all 4. e. Use the colon operator to create a variable named SEVENS that is a row vector of seven elements that are all the number 7 f. Use a single command to create a row vector P with eight elements as [0 0 0 0 0 0 0 8]. Do not type the vector elements explicitly. g. Use a single command to create a row vector Q with nine elements where the last four elements are all 9 while the rest of elements are 0. Do not type the vector elements explicitly. h. Use a single command to create a row vector (assign it to a variable named R) with 10 elements such that R = -4 -1 2 5 8 14 18 22 26 30. Do not type the vector elements explicitly. i. Use the linspace in a single command to create a column vector where the first 4 entries are the number 4 and the last 5 entries are the number 5. Do not type individual elements explicitly. j. Use the : operator to do part i. You can use more than one command. Display the output of parts a toj in the command window

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

Explain key approaches to implementing LMD

Answered: 1 week ago