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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started