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

Directions: For each question below fill in \" True\" or \" False\". The MATLAB

ID: 3577594 • Letter: D

Question

Directions: For each question below fill in " True" or " False". The MATLAB call ones(3) will create a matrix full of 1s. __ The MATLAB function input stores user input into the variable called input. ___ The MATLAB expression [a b] requires that a and b both be scalar values. _ In MATLAB the = = operator is a relational operator while = is the assignment operator. In MATLAB a function can not call itself in its own definition. _ In MATLAB persistent variables can be used from any workspace. _ The continue statement immediately ends the current loop, skipping the remaining commands inside the loop. _ A byte consists of 8 bits. _ Strings are vectors of character values. ___ Complex numbers are compared using on their real portions when using relational operators such as > and

Explanation / Answer

Question no-31

Answer is (d) :    X=rand(3,6) assigns to x , a matrix of random numbers between 0 to 1 , three rows            

                           high and 6 columns wide

Explanation:       As rand () return a number between 0 to 1. So rand(3,6) returns a matrix of size 3 rows and 6 columns of random number between 0 to 1.

Question no-32

Answer is (a)        . An empty vector

Explanation:   x= [start: stepvalue : end]     return a vector containing value from start to end with a increment value of step value.

If start<=end, stepvalue must be +ve.If start>=end, step value is –ve.Otherwise it returns an empty vector.

In above example start=1, end =9 and stepvalue=-1 ( I,e –ve). So returns an empty vector.

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