Question: Create some vectors in Matlab. Write single MATLAB statements to create these vectors, use calculator mode and save your code and results to a diary

Create some vectors in Matlab.

Write single MATLAB statements to create these vectors, use calculator mode and save your code and results to a diary file. Don't just show the answers, you need to show the Matlab statements necessary that create the answers.

A. Assign 3 positive integer values to a row vector A. B. Assign 4 real number positive and negative values to a column vector B. C. Use colon notation to create a vector C that contains the odd integers from -5 to 7. D. Use colon notation to create a vector D that contains elements from 5.0 to 10.0 inclusive in .5 increments. E. Use colon notation to create a vector E, of all multiples of 3 starting with 30 through 60. F. Use "linspace" to create a vector F, of 20 values from -5 to 5 (inclusive). G. Try to do the same thing as part F but use colon notation to create vector G that is as close as possible to vector F. H. Create a vector H from 0 to pi with 8 equally spaced elements. I. Create a vector I that contains the first 3 upper case letters of the alphabet. J. Define variables a = 6.4, b=-.3 and use these to create a row vector K that has the following elements: a, a squared, a/b, a*b, and squareroot of a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!