Question
using MATLAB type this code
Create a file. In thi s file, create a separate cell for each of the fal owing task 1. Create a variable named Y and assign a value of 354.1 to it 2. Create a variable named Y and assign the following to it: array 7 48 2 39 6 15 3. Create a variable named and assign the following vector to it: 4. Add 123 to 5. Multiply every element of by 14 6, Multiply "y" by "z" 7. Square every element of Cube every element af "a" 9, Plot the final position of the bungee jumper as a function of k (solved in class during Lecture 20 for a range of k values from 1 to 50 N/m. Ihint: the colon operator can create an incrementai array. Try the following commond 1:2:50m. Formatting Label the axes. Add at turn the grid on b. On the same plot, add lines for several values of mass from 40 to 60 kg using separate linespecs c. Add a legend that indicates which line corresponds to which value of m
Explanation / Answer
1st answer. X=single(354.1);
4th answer. X=single(354.1)+123
2nd answer. Y=[7 4 8; 2 3 9; 6 1 5]