Question: answer the first question, the second question is to show what myvec is. Show all matlab codes used. . Write a function with header [Ml,

answer the first question, the second question is to show what myvec is. Show all matlab codes used.

. Write a function with header [Ml, Mr] mySplitMatrix (M), where M is a matrix with at least two columns, Ml is the left half of M and Mr is the right half of M. If M has an odd number of columns, the middle column should be included in Ml. Hint: the size and ceil functions may be useful for this. Test your function on M [1 2 3; 4 5 6; 7 8 9] and on M myvec. 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; 0 = 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 Doel; Save myvec in a file myname. mat. Clear all variables from the Workspace. Load the file myname. mat into the Workspace
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
