You will create a text-based M-fille named (Rule 1) Project_WXYZ.m WXYZ are as s
ID: 3573322 • Letter: Y
Question
You will create a text-based M-fille named (Rule 1) Project_WXYZ.m WXYZ are as specified in Rule 1. Always use semicolons to suppress output; 10 points deducted for every missing semicolon. 1. First line: The first line of the M-file will contain in the form of a MATLAB comment the name of the file in question i.e. Project_WXYZ.m with the first character of the word Project, separated with three (3) spaces from the MATLAB comment symbol(%). 2. Second line: The second line would contain in the form of a MATLAB comment line your first or other given names in lower case (all characters), followed by your last name fully capitalized (all characters). Then include the last four digits of your id, eg WXYZ. Exactly three (3) space characters in between any two of the words or the comment indicator of MATLAB or WXYZ. 3. Third-Seventh lines: The third line will be empty. (Note the difference between an empty line like this and an empty comment line.) For 3.1-3.4 use 4 lines (fourth through seventh). The remaining lines of the MATLAB file are described in the following questions 3.1-3.4 and 4- 15. Pay attention to the details. Variables have names starting with a v followed by a number. Do not change names or capitalization. Grading will be done automatically for most problems. Use brief MATLAB array operators rather than explicit listing of matrix or vector elements. Thus If you need to create a row vector v containing 1,2,3,4, a solution that is along the lines v= 1:4 is a correct one; writing something like v = [ 1 2 3 4] will get you 0 points. 2 3.1 Variable v1: In one line, create string variable v1 and assign to it as value a string consisting of your last name in capital (upper) case followed by a single space, followed by your first name in lower case. (If you have more than one given/first-names use a dash to connect all those given names.) 3.2 Variable v2: In one line, create variable v2 and assign to it the last four digits of your NJIT id in the form of a string. 3.3 Variable v3: In one line, create variable v3 and assign to it the last four digits of your NJIT id in the form of a 16-bit integer. 3.4 Variable v4: In one line, create variable v4 and assign to it the last four digits of your NJIT id in the form of a 32-bit unsigned integer.
Explanation / Answer
% Project_WXYZ.m
% chegg EXPERT 1234
%
v1 = "EXPERT chegg";
v2 = "1234";
v3 = int16(1234);
v4 = uint(1234);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.