Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem 1 (6 Points) Create the following variables in the code: Scalar Characte

ID: 3881176 • Letter: P

Question

Problem 1 (6 Points) Create the following variables in the code: Scalar Character (or single letter string) An array of 6x1 A matrix of 2x4 The values could be anything; however, make sure you agree with the variable type the workspace is telling you. You need to have four variables in your workspace after you are done declaring them. Remember that every value (scalar, character, array, or matrix) needs to have a variable name-ans is not an accepted variable name. Rules for variables, do not have spaces in them, and do not start with a number, Note: in the class exercises every line of code finished with a semicolon (). This is done so the result of that line does not come out in the Command Window. A good exercise is to write the four lines of code that this problem requires with the semicolon at the end, and run the code. Then, remove the semicolons of the end of each line, and run the code again. See the difference.

Explanation / Answer

scalar=2;%scalar variable
Character='q;'%Character variable
Array6_1=[1;2;3;4;5;6];%6x1 array
Matrix2_4=[1 2 3 4;5 6 7 8];%2x4 array

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote