Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

In chebwin(L,r), what is the default value of r?(a) 150 dB(b) 90 dB(c) 100 dB(d) 110 dBI had been asked this question in my homework.This interesting question is from Fourier Analysis and Filtering topic in division Beyond the Basics of MATLAB

Answer»

Correct ANSWER is (c) 100 dB

Best explanation: The default VALUE of R is 100dB. R is the amount by which the the Fourier TRANSFORM of the side-lobe magnitude should be below the main-lobe magnitude.

2.

The cut-off frequency of the type-2 Chebyshev filter is produced by the ________(a) cheby2ord()(b) chebyord2()(c) chebyshevord2()(d) cheby2order()I have been asked this question in examination.I'm obligated to ask this question of Fourier Analysis and Filtering topic in chapter Beyond the Basics of MATLAB

Answer»

Right choice is (a) cheby2ord()

EXPLANATION: The cheby2ord() COMMAND is used to generate the order and the cut-off frequency of the type-2 CHEBYSHEV FILTER. Hence only cheby2ord() is correct.

3.

The answer for indefinite integration in MATLAB is __________(a) The only possible particular integral(b) One of the many possible integrals(c) 0(d) erroneousThis question was posed to me by my college director while I was bunking the class.Question is taken from Integration in chapter Beyond the Basics of MATLAB

Answer»

The CORRECT option is (b) ONE of the many possible INTEGRALS

For EXPLANATION: Indefinite integrals can have many possible solutions. Only of the SOLUTION is provided by the int() function.

4.

We cannot perform problems regarding area under a curve in MATLAB.(a) True(b) FalseThe question was asked in an interview.My doubt is from Integration topic in chapter Beyond the Basics of MATLAB

Answer»

Right option is (B) False

To elaborate: We can do PROBLEMS pertaining to finding the area under a curve in MATLAB. This is because methods of definite and indefinite integration are PRESENT in the FORM of commands in MATLAB. This MAKES MATLAB so versatile.

5.

What will be the command to find the current through a 1H inductor (no initial current) whose voltage changes by v=t^2?(a) int(‘t^2’)(b) intg(‘t^2’)(c) int(t^2)(d) Cannot be determinedThis question was addressed to me in exam.My doubt is from Integration topic in portion Beyond the Basics of MATLAB

Answer»

Right choice is (c) int(t^2)

To EXPLAIN I would SAY: We can only integrate our voltage equation to get the current as a function of time. The syntax for int(t^2) is the correct syntax for the int() command. The REST is wrong since the int() command does not take string arguments.

6.

What is the class of the result of quad() command?(a) Long(b) Short(c) Double(d) UnsignedI have been asked this question in an international level competition.The doubt is from Integration in chapter Beyond the Basics of MATLAB

Answer»

The correct ANSWER is (c) DOUBLE

For explanation: The class of the result of QUAD command is double. This is an in-built command in MATLAB and it will give the answer in the format double.

7.

The method of differentiation in MATLAB is pertinent for getting __________(a) Higher order differential equations(b) Lower order differential equations(c) Any order differential equation(d) A certain ordered differential equation, within a rangeThis question was posed to me by my school teacher while I was bunking the class.This key question is from Differentiation topic in chapter Beyond the Basics of MATLAB

Answer»

The correct choice is (d) A CERTAIN ordered differential equation, within a range

Easiest EXPLANATION: MATLAB cannot FIND unnecessarily high ordered differential equation. It will compute a differential equation but the order of the differential equation is LIMITED.

8.

What is the class of the complex number?(a) double(b) symbolic(c) character(d) arrayI had been asked this question at a job interview.My question is from Complex Arithmetic in portion Beyond the Basics of MATLAB

Answer» CORRECT answer is (b) SYMBOLIC

The EXPLANATION is: Since the complex number represented in MATLAB uses ‘i’ as a symbolic character, the class of any complex number is symbolic. It is not double and it is certainly not a character. An ARRAY is the general class of any variable or expression USED in MATLAB.
9.

What is the return type of angles in MATLAB?(a) Degrees(b) Radians(c) Radians & Degrees(d) Depends on the userThis question was addressed to me in homework.Question is from Data Classes topic in section Beyond the Basics of MATLAB

Answer»

Right ANSWER is (b) Radians

The EXPLANATION is: This is characteristic of MATLAB to TAKE input for angles and return angles in radians. Thus entering SIN(90) in MATLAB will not return 1, but entering sin(pi/2) will return 1.

10.

How can we close all graphs in MATLAB?(a) Using the close command(b) Using the clear all command(c) Using the close all command(d) Using the clear commandThis question was addressed to me during an interview for a job.This intriguing question comes from Suppressing Output topic in division Beyond the Basics of MATLAB

Answer»

The correct choice is (b) Using the clear all command

For explanation: The in-built command to CLOSE the windows containing graphs is ‘close all’. This command should be placed at the beginning of a function which creates graphs so that future commands do not AFFECT the GRAPH GENERATED every TIME the function is called.

11.

The freqz() command returns __________(a) No such command(b) A set of frequencies(c) Frequency Response(d) Phase plotThe question was asked during an online interview.My query is from Fourier Analysis and Filtering in portion Beyond the Basics of MATLAB

Answer» RIGHT choice is (c) FREQUENCY Response

Explanation: The freqz() command RETURNS the frequency response of a filter. The input to the command are the numerator and the DENOMINATOR polynomial.
12.

The multiplication of two signal in time domain signifies _______(a) Convolution in time domain(b) Convolution in frequency (jw)domain(c) Multiplication in frequency (jw) domain(d) NothingI got this question in an interview.My question is taken from Fourier Analysis and Filtering topic in division Beyond the Basics of MATLAB

Answer»

The CORRECT option is (c) MULTIPLICATION in FREQUENCY (jw) domain

To elaborate: The fourier transform can be used to FIND the multiplication of two signals in time domain. The convolution of two signals in frequency domain is same as the multiplication of two signals in time domain.

13.

What is the default parameter for dsolve() command?(a) t(b) No default parameter(c) Input differentiating variable(d) Defined input parameterI had been asked this question in semester exam.My doubt is from Default Variables topic in chapter Beyond the Basics of MATLAB

Answer»

The correct answer is (c) INPUT differentiating VARIABLE

The explanation is: The dsolve COMMAND returns a solution which is parameterized by the variable that has been used as a differential in the input FUNCTION. As such, there is no default variable for this command.

14.

The quad command cannot do ______________(a) Low accuracy integration(b) Definite integration(c) Any integration(d) Indefinite integrationI got this question in final exam.My doubt is from Integration topic in section Beyond the Basics of MATLAB

Answer»

Correct choice is (d) INDEFINITE INTEGRATION

Explanation: The QUAD command is used to find the integral solution for LOW accuracy cases. It can only do definite integration. It cannot do any indefinite integration; for that, we NEED the int() command.

15.

The command quad() cannot do ______ integrals.(a) Definite(b) Indefinite(c) Particular(d) AnyThe question was asked during an internship interview.My question is taken from Integration topic in division Beyond the Basics of MATLAB

Answer»

Right ANSWER is (b) Indefinite

Easiest explanation: If we introduce INFINITY as an argument to our command ‘quad()’, it will result in an error. This is because it will not take Inf as an input LIMIT. It can do definite integral over a FINITE range.

16.

How can we check in MATLAB if an electrical circuit is linear or not?(a) Check consistency(b) Superposition(c) Superposition via Simulink(d) Check homogeneityThis question was posed to me during an online exam.Query is from Linear Systems in chapter Beyond the Basics of MATLAB

Answer»

Correct option is (c) Superposition via Simulink

The best I can explain: We can MODEL our circuit in Simulink and then apply the superposition theorem to check if at all the circuit is following superposition theorem. To apply the theorem, find the I/V relationship across any branch due to a single SOURCE and switch of the rest of the sources. REPEAT this process for all the individual sources. Finally, turn on all the sources and check whether the I/V relationship is equal to the superposition of all the I/V sources previously calculated.

17.

How can we find the solution of a nonhomogeneous system of equations without dealing with the rank of matrices?(a) Rouche’s theorem(b) Cramer’s rule(c) Gauss’s law(d) Cannot be doneThe question was asked during an interview.My question comes from Linear Systems in chapter Beyond the Basics of MATLAB

Answer»

Right answer is (b) Cramer’s rule

Best explanation: It is EASIER to FIND the solution of a system of equations for a non-homogeneous system using Cramer’s rule. Now, the process is time consuming since we NEED to find higher order determinants for higher order SYSTEMS. This is why we go for Rouche’s theorem by hand. But MATLAB computes determinants very fast. Hence, without finding the rank, we can find the solution of a system of NONHOMOGENEOUS equations.

18.

A student has to find a solution for a system of equations having three variables. He has defined the coefficient matrix as C while the variable matrix as d.He observes that the system is homogeneous. So, to find the solution, he must first check(a) Consistency(b) Homogeneity(c) Heterogeneity(d) LinearityI have been asked this question during an interview for a job.This question is from Linear Systems topic in section Beyond the Basics of MATLAB

Answer»

The correct option is (a) Consistency

Explanation: If the system of equations is not consistent, the student cannot EVER get a solution for the system of EQUATION. He has to check consistency by FINDING the rank of the matrix. Thereafter he can comment on the NATURE of SOLUTIONS the system possesses.

19.

The maximum space allocated for sparse matrices is given by the ____ command.(a) maxsparse(b) sparsemax(c) nzmax(d) no such commandI had been asked this question in class test.This question is from Sparse Matrices in section Beyond the Basics of MATLAB

Answer»

The CORRECT choice is (c) nzmax

Easy EXPLANATION: The nzmax is the command to find the MAXIMUM space allocated for SPARSE matrices. The maximum space is proportional to the number of non-zero ELEMENTS in the original matrix.

20.

The linspace command generates pseudorandom numbers.(a) True(b) FalseThis question was posed to me in an interview.My question is based upon Random Number Generation topic in section Beyond the Basics of MATLAB

Answer»

Right CHOICE is (b) False

To explain: The linspace commands generate numbers which are equidistant from each other and CONTAIN within a closed RANGE. Hence, they are not PSEUDORANDOM numbers and the statement is false.

21.

The window function is used to __________(a) multiply it with the incoming signal(b) add it with the incoming signal(c) subtract it from the incoming signal(d) divide the incoming signalI had been asked this question in an interview.My query is from Fourier Analysis and Filtering in portion Beyond the Basics of MATLAB

Answer»

Correct choice is (a) multiply it with the incoming signal

The BEST explanation: The rectangular window function is multiplied with the incoming signal so that the unrequired COMPONENTS can be filtered out from the signal. This is the BASIC principle of filtering.

22.

What is the function of the unwarp command?(a) Generate smoother phase plots(b) Generate smoother gain plots(c) Generate smoother root locus(d) No such commandI have been asked this question in semester exam.Question is from Fourier Analysis and Filtering in portion Beyond the Basics of MATLAB

Answer»

Right OPTION is (a) Generate SMOOTHER phase plots

Easy EXPLANATION: The functioning of the unwrap command is based on the tolerance limit, ‘pi’, which is USED to multiply the input VECTOR with 2*pi so that it can return values for a smoother phase plot. Hence, Generate smoother phase plots is correct.

23.

The condition for removal discontinuity is ____________(a) Left hand limit = right hand limit ≠ function value(b) Left hand limit ≠ right hand limit = function value(c) Right hand limit ≠ left hand limit = function value(d) Left hand limit ≠ right hand limit ≠ function valueThe question was posed to me during an internship interview.Question is from Limits in portion Beyond the Basics of MATLAB

Answer»

Right choice is (a) Left hand limit = right hand limit ≠ FUNCTION value

The BEST explanation: The condition of removal discontinuity is given by option Left hand limit = right hand limit ≠ function value only. Rest are incorrect because the two conditions of removal discontinuity is limn→n0 f(n) < ∞and f(n0) < ∞. So the function should have equal VALUES while reaching the limiting value from both directions and it should have a finite value at the limiting value. But since there is a discontinuity at the limiting value, the values after APPROACHING the function from both directions is not equal to the function value at the limiting value.

24.

How will we integrate a non-linear function, f, taken as an inline function?(a) int([f])(b) quad(‘f’)(c) quad([f])(d) quad(‘[f]’)This question was addressed to me by my college director while I was bunking the class.This key question is from Integration topic in portion Beyond the Basics of MATLAB

Answer»

Correct answer is (d) quad(‘[F]’)

The explanation: The function, f, will be taken as a string input. Hence, we cannot use the int COMMAND since it takes SYMBOLIC arguments while the CLASS of our function is inline. Since the function is non-linear, we need to introduce it as a matrix to our quad() command. It takes string arguments so the correct answer should be quad(‘[]’).

25.

The class of the result of an indefinite integration is always _____________(a) Signed(b) Double(c) Array(d) SymbolicThe question was asked in an interview for job.I would like to ask this question from Integration in portion Beyond the Basics of MATLAB

Answer» CORRECT choice is (d) SYMBOLIC

To explain: Since we are doing indefinite integration, the result is not a number. It will contain the particular integral after integrating the function and it will only consist of the independent variable. HENCE, it’s CLASS will be symbolic.
26.

How will ∫^e^x⁄x look like, in MATLAB?(a) Infinite series(b) expint(x)(c) ei(x)(d) ErrorI had been asked this question in class test.My enquiry is from Integration in chapter Beyond the Basics of MATLAB

Answer»

The correct answer is (c) ei(x)

The best I can explain: The integration of the given function is stored in MATLAB as ei(x) or exponential integration of x. This YIELDS a solution of an exponentially increasing series. HENCE, EVEN though it BECOMES an infinite series, it will be represented as ei(x) whenever we COME across such an integration.

27.

Which rule does MATLAB use while differentiating a set of functions?(a) u-v rule(b) by parts(c) no pre-defined rule(d) not possibleThis question was addressed to me in a national level competition.I would like to ask this question from Differentiation topic in section Beyond the Basics of MATLAB

Answer»

Correct option is (a) u-v rule

Explanation: If we give an ARGUMENT within our COMMAND DIFF() which is a product of multiple functions or division of two functions; we will get the result that will be generated according to the u-v rule. This MAKES MATLAB very versatile for the applications concerning differentiation.

28.

For a homogeneous system, Cramer’s rule will always yield a trivial solution in MATLAB.(a) True(b) FalseI have been asked this question during an interview for a job.This interesting question is from Linear Systems in portion Beyond the Basics of MATLAB

Answer»

The correct option is (a) True

To explain I would say: The PROCESS of Cramer’s rule will always YIELD a SOLUTION for the variables in a SYSTEM. But for a homogeneous system with no constant value, it will yield a 0 as a solution. HENCE all the variables will get a 0 as a solution, there-by yielding a trivial solution. This doesn’t imply that the system is inconsistent- this is why we go for comparing ranks, it will allow us to establish a more pertinent justification of the nature of the system.

29.

The order of the type 1 Chebyshev filter is obtained from the ________(a) cheb1ord()(b) chebord()(c) chebyord()(d) chebshev()This question was posed to me in an interview for internship.This interesting question is from Fourier Analysis and Filtering in division Beyond the Basics of MATLAB

Answer»

Correct choice is (a) cheb1ord()

For explanation: The cheb1ord() COMMAND is inbuilt in MATLAB. It HELPS to generate the order of the type-1 CHEBYSHEV filter and ALSO it’s cut-off frequency.

30.

Can we perform infinite series summation in MATLAB?(a) Yes(b) No(c) Cannot be determined(d) SometimesThis question was posed to me in class test.I need to ask this question from Limits in chapter Beyond the Basics of MATLAB

Answer»

Correct option is (d) Sometimes

To explain: Symbolic SUMMATIONS is available in MATLAB. This allows us to find SUM of series expansions. We can do infinite series SUMMATION in MATLAB. We can calculate the series to N terms and then MAKE n approaching infinity.

31.

The current characteristics of RC networks are better analyzed by Laplace than differentiation methods.(a) True(b) FalseI got this question in semester exam.My doubt is from Differentiation in section Beyond the Basics of MATLAB

Answer» CORRECT answer is (b) False

Easiest explanation: We use the Laplace method to ease the PROCESS of solving a DIFFERENTIAL EQUATION. But, with the help of MATLAB- we can solve them very fast. So, it is obvious to use the ODE solver to calculate the current through the capacitor in RC networks and get a time response.
32.

Which of the following command can be is used for complex arithmetic?(a) abs()(b) atan()(c) realc()(d) imagc()The question was asked during an interview.I need to ask this question from Complex Arithmetic topic in section Beyond the Basics of MATLAB

Answer»

The correct option is (a) abs()

For explanation I would say: The abs() command is used to get the MODULUS of any complex number. The rest of the OPTIONS are wrong because they should be ‘atan2()’, ‘REAL()’ and ‘IMAG()’.

33.

The teacher has given the assignment to find the sum of 2 numbers. But the code should not contain the ‘+’ operator. What is to be done?(a) Use a function(b) Add the values and print the sum directly(c) Use an expression(d) Cannot be doneI got this question by my school principal while I was bunking the class.I'm obligated to ask this question of Functions and Expressions topic in division Beyond the Basics of MATLAB

Answer» RIGHT CHOICE is (a) Use a function

The best I can explain: The power of a function is to hide the statements which are used to complete our TASK. So the student can create a function file to add two numbers. HENCE, the code will not show the ‘+’ operator but it will be used implicitly.
34.

Which of the following can be the space taken up by a sparse matrix?(a) .25 megabytes(b) 600 megabytes(c) .5 GB(d) 450 megabytesI had been asked this question in an online interview.The question is from Sparse Matrices topic in portion Beyond the Basics of MATLAB

Answer»

Correct CHOICE is (a) .25 megabytes

Explanation: The sparse MATRIX takes EXTREMELY small space from memory which is why it is so useful. The most plausible option amongst is .25 megabytes while the rest suggest PRETTY large amount of memory.

35.

The fir1 command can be used to find _____________(a) High Pass Filters using IIR method(b) Low Pass Filters FIR method(c) Filters using Window Method(d) FIR filters using Window MethodThis question was posed to me in a job interview.Question is taken from Fourier Analysis and Filtering in division Beyond the Basics of MATLAB

Answer»

Right answer is (d) FIR filters using WINDOW METHOD

The explanation: The fir1() COMMAND is a pre-defined command in MATLAB and it uses the HAMMING Window method to obtain the Response of any FIR FILTER. Low Pass Filters FIR method would’ve been correct but FIR filters using Window Method is a more generalized answer.

36.

The fir1 command can be used to find _____________(a) High Pass Filters using IIR method(b) Low Pass Filters FIR method(c) Filters using Window Method(d) FIR filters using Window MethodI have been asked this question by my school principal while I was bunking the class.This key question is from Fourier Analysis and Filtering in division Beyond the Basics of MATLAB

Answer»
37.

The default variable in case of solve(‘f(x,y,p,a,l)’) command is __________(a) x(b) Variables near to x(c) Variables away from x(d) No default variableI had been asked this question during an interview.This intriguing question comes from Default Variables in portion Beyond the Basics of MATLAB

Answer»

Right option is (a) X

The best I can explain: Unless specified, the solve command would take x as the default variable who’s solution is being SOUGHT. If the FUNCTION did not have x as an independent PARAMETER, the default variable would’ve been variables NEAR to x.

38.

What is the default variable while evaluating a Laplace transform?(a) s(b) t(c) Any(d) lThis question was posed to me by my college director while I was bunking the class.My doubt is from Default Variables topic in division Beyond the Basics of MATLAB

Answer»

Right option is (a) s

The best explanation: If no VARIABLE is specified within the laplace command, the function gives the laplace transform of the input function with ‘s’ as the INDEPENDENT variable. Hence, SIS CORRECT.

39.

Which function does cumulative summation of elements?(a) sumcum[](b) sumcum()(c) cumsum[](d) cumsum()This question was addressed to me in exam.The doubt is from Sums and Products topic in chapter Beyond the Basics of MATLAB

Answer»

The correct ANSWER is (d) cumsum()

To explain: The correct syntax for the function which does CUMULATIVE summation is ‘cumsum()’. Hence option cumsum[] is wrong. The FUNCTIONS in options sumcum() and sumcum[] do not EXIST in MATLAB.

40.

To find the particular integral of a differential equation, we use the _____(a) int() command(b) quad() command(c) ODE solver(d) Depends on the differential equationI got this question during an interview.This key question is from Integration in chapter Beyond the Basics of MATLAB

Answer»

Right answer is (d) Depends on the DIFFERENTIAL equation

To EXPLAIN I would say: We can find the PARTICULAR integral for the differential equation ^dy⁄dx=5x by using int(5*x). We would need an ODE solver when the differential equation is LONG and has multiple ORDERS. Hence, it depends on the differential equation, how we want to select our command.

41.

The code quad(‘x.^2’,-3,2) is same as ___________(a) quad(‘x.^2’,-2,3)(b) quad(‘x.^2’,-3,2)(c) quad(x.^2,3,-2)(d) quad(‘x^2’,-2,-3)The question was asked in examination.I'm obligated to ask this question of Integration in division Beyond the Basics of MATLAB

Answer»

Correct answer is (a) quad(‘x.^2’,-2,3)

The best EXPLANATION: SINCE the FIRST limit provided to our quad command is a lower limit, we will get the answer same for the code quad(‘x.^2’,-2,3). We need to give the input function with the ‘ . ‘ operator since we are computing the value for EVERY instant and it is ADDING up.

42.

The capacitor voltage due to a current of i=t^4with v(0^+)=3 is found from using _________(a) ODE solver(b) int() command(c) quad() command(d) diff() commandThis question was addressed to me at a job interview.The origin of the question is Integration in section Beyond the Basics of MATLAB

Answer»

The correct answer is (a) ODE solver

For explanation: The CASE for the CAPACITOR has an initial CONDITION. So the int() command won’t MERELY give the voltage, as a function of time, for the capacitor. We need to use the ode45 solver or the ode23 solver. The quad command won’t also give the TRUE solution for a voltage since it doesn’t return the complementary function.

43.

There is no difference between a difference equation and a differential equation.(a) True(b) FalseThe question was posed to me in an online quiz.I need to ask this question from Differentiation in portion Beyond the Basics of MATLAB

Answer»

The correct choice is (b) False

Best explanation: There are many differences between a difference EQUATION and a differential equation. But the most important would be that a difference equation TAKES FINITE steps of changes of our changing variable while a differential equation takes an infinitesimal change in our changing variable.

44.

While solving a differential equation, MATLAB will show us the ___________(a) General Solution(b) Particular Solution(c) Complementary function(d) Depends on the equationThe question was asked in homework.This interesting question is from Differentiation in chapter Beyond the Basics of MATLAB

Answer»

The correct ANSWER is (b) PARTICULAR Solution

The explanation: When we USE dsolve to find the solution of an ordinary differential equation, we get the general solution of the equation. Now, this equation comprises of both the complementary FUNCTION and the particular integral for the general solution. Hence, it is not that we only get the particular integral as a solution after using dsolve().

45.

Checking the linearity of a system, the first thing we need to check is whether the system is __________(a) Homogeneous or not(b) Consistent or not(c) Superposition(d) Depends on the representation of the systemThis question was posed to me in unit test.This interesting question is from Linear Systems topic in section Beyond the Basics of MATLAB

Answer»

Right option is (d) Depends on the REPRESENTATION of the system

For explanation I would say: First we NEED to check if the system is represented by a set of equations or it is represented in terms of signals. If it is represented by a set of EQUATION, we need to GO for homogeneity first. If it is represented by the observation of input-output signals, we need to go by Superposition.

46.

To apply Cramer’s rule, the condition is _________(a) Non-homogeneous system of equations(b) Homogeneous system of equations(c) Determinant of co-efficient matrix is not equal to 0(d) No conditionThis question was addressed to me during an online interview.My enquiry is from Linear Systems in portion Beyond the Basics of MATLAB

Answer»

Right OPTION is (c) Determinant of co-efficient MATRIX is not equal to 0

To explain I would SAY: If the determinant of co-efficient matrix is 0, all the solutions will come to be Infinite. Thus, this is the condition to check before going for Cramer’s rule to check the SOLUTION of any system of EQUATIONS.

47.

A mathematical statement is a combination of functions and variables only.(a) True(b) FalseThis question was posed to me during an interview.The origin of the question is Functions and Expressions in division Beyond the Basics of MATLAB

Answer»

Right choice is (b) False

To elaborate: An expression is a combination of variables, OPERATORS and functions. It is not NECESSARY that only functions and variables are PRESENT in a mathematical expression. The statement ‘a=b+c’ contains no functions, but it only performs the ADDITION operation between b and c and assigns the value to a. The statement a=sum(b,c) shows no mathematical operation EXPLICITLY since the operation is done by the function itself.

48.

A sparse identity matrix is generated by the ______ command.(a) sparseid(b) isparse(c) speye(d) idensparseI had been asked this question in examination.The question is from Sparse Matrices topic in portion Beyond the Basics of MATLAB

Answer»

The CORRECT option is (a) sparseid

The explanation is: The correct COMMAND to generate a sparse identity matrix is the SPEYE command. The issparse command checks whether an INPUT matrix is a sparse matrix. HENCE speye is correct.

49.

The nature of complex input taken by the sparse() command is ______________(a) Only Imaginary part(b) Only positive imaginary part(c) Only negative real part(d) All of the mentionedThe question was asked by my school principal while I was bunking the class.I'm obligated to ask this question of Sparse Matrices topic in section Beyond the Basics of MATLAB

Answer» CORRECT answer is (d) All of the mentioned

For explanation: The sparse() COMMAND takes all KIND of complex inputs. It is not BIASED by DEFAULT.
50.

The randn command generates random numbers by following a _________(a) Normal distribution(b) Normalized Normal Distribution(c) Uniform Distribution(d) Bernoulli’s DistributionThis question was addressed to me in a national level competition.I'd like to ask this question from Random Number Generation topic in division Beyond the Basics of MATLAB

Answer»

Correct choice is (B) Normalized NORMAL Distribution

Best EXPLANATION: The Normalized normal distribution is used to generate random numbers random numbers using the randn command- this is the inbuilt working of the randn command. HENCE, Normalized Normal Distribution is correct.