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

The two variables are not the same even they appear identical on the screen Note

ID: 3666160 • Letter: T

Question

The two variables are not the same even they appear identical on the screen Note that the character 536 in the line below the x = are indented, while the characters 536 in the line below . y = are not indented. The variable x can be used m mathematical expressions, whereas the variable y cannot. Create a row vector that has the follow ing elements: 8, 10/4 . 12 times 1.4, 51, tjn85^degree ,SQUAREROOT26, and 0.15. Create a row vector that has the following elements: SQUAREROOTl5 times 10^3, 25 / 14 -6^2.

Explanation / Answer

This is way of creating the matlab coloum and row vectors ..

column vector, append the transpose operator to the end of the vector-creating expression
   >> y = (1:5)'

   y =
  
   1
   2
   3
   4
   5
         
Row vector declaration example:
D = 1:4
results in

D =
1 2 3 4