Question: Create a Matlab Live Script called Vector_ Your_ID >.mlx to perform the following operations: a. initialize a 5-dimensional vector u composed of random numbers
Create a Matlab Live Script called "Vector_ Your_ID >.mlx " to perform the following operations: a. initialize a 5-dimensional vector u composed of random numbers between 0 and 1 (Hint: search for the function rand in the Matlab Documentation) b. normalize u (Hint: search the Documentation for the norm function) c. multiply u by a scalar alpha valued according to the first letter of your first name (A=1,B=2,C=3,) and assign the result of this operation to a vector v Optional (10 extra points): perform the operation from point c above using a Character variable that contains your last name, and compute the value of the variable alpha using the function double (Hint: check the character to number discussion at this link: https://www.mathworks.com/matlabcentral/answers/479451-assigning-letters-to-numbers). Double check that your result is consistent with the vector v computed earlier
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
