Question: use matlab show all codes and work 1. Do the following in the Command Window: create variables corresponding to the letters of your first name

use matlab show all codes and work
1. Do the following in the Command Window: create variables corresponding to the letters of your first name and surname and assign numbers to these variables that correspond to the places of the letters in the alphabet. For example, if you are John Doe', you should type: >> J-10; 15; h = 8; n - 14; D = 4; e = 5; Now create the row-vector myvec with elements that spell your name, as in >> myvec - John Doe): Save myvec in a file myname.mat. Clear all variables from the Workspace. Load the file myname.mat into the Workspace 2. With a single command, which uses functions mod and sum, determine how many numbers in myvec are divisible by 3. 3. With a single command, which uses reshape and the colon operator, create a 5-by-4 matrix A from the elements of myvec. If the number of elements is not sufficient, reuse the elements from the beginning. For example, if myvec - (10 15 8 14 4 15 5), then A - 110 15 14 15 15 549 8 10 15 14 14 15 5 4 4 8 10 15)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
