A Learning Portal from Recruitment India
What is the symbol used to evaluate the transpose of a vector?
“ ‘ ”
“ ^ ”
“ ~ ”
“ * ”
Answer with explanation
Answer: Option AExplanation
It is pre-defined in MATLAB that if we want to find the transpose of a vector, we will have to use the “ ‘ ” symbol following the vector or the vector name. “ ^ ” is used to raise the power of a variable while “ * ” is used for multiplication purposes.
Workspace
What is the output of the following code shown?
syms a k; symsum(a^k, 0, Inf)
Error due to an unmentioned value of a
Error due to Inf
Inf
1/1-a
Answer with explanation
Answer: Option DExplanation
The correct answer is 1/1-a
MATLAB will return an answer intuitively while considering symbolic summations. Here, MATLAB will return an answer which is plausible to a condition.
Workspace
The result of cumsum([1,2,3]) and sum([3,3]) are ______
Signed numbers
Absolute numbers
Different
Same
Answer with explanation
Answer: Option CExplanation
The correct answer is Different
The result of cumsum([1 2 3]) is 1,3,6 i.e the result is a row vector having output after adding up each element cumulatively while the result of sum([3 3]) is only 6
Workspace
The function to find the R.M.S value is __________
sqrt[meansqr()]
sqrt(meansqr[])
sqrt[meansqr[]]
sqrt(meansqr())
Answer with explanation
Answer: Option DExplanation
The correct syntax of the function which performs the mean square of a set of elements is meansqr(). The correct syntax of the function which returns the square root of a number is sqrt()
Workspace