Basics on MATLAB related Questions and Answers

Question 1 : How would you express a pi as a character and an integer? Choose the correct code.
1. a=pi;b='pi';
2. a=22/7; b=pi;
3. a=3.1415; b=22/7;
4. a=3.1429;b='pi';
View Answer   Discuss with Members

Question 2 : A student has to find the solution of an equation cos(x)=1/2. She has to write the program such that exact values are shown at output. Which of the following codes would help her?
1. syms x;eqn = cos(x) == 1/2;vpa( solve(eqn,x))
2. syms x;eqn = cos(x) == 1/2;solve(eqn,x)
3. vpa(solve('cos(x)=1/2'))
4. syms x;eqn = cos(x) = 1/2;vpa(solve(eqn,x))
View Answer   Discuss with Members

Question 3 : Which function is preferable to find the magnitude of a complex number?
1. abs()
2. sqrt()
3. cart2pol()
4. MATLAB does not support complex arguments
View Answer   Discuss with Members

Question 4 : Conversion Function int16 uses_________ range of value?
1. -27 to 27-1
2. -215 to 215-1
3. -231 to 231-1
4. 0 to 216-1
View Answer   Discuss with Members

Question 10 : To see the sub-matrix with aij for 2<=i<=4 and 1<=j<=2 of a matrix a, of order 5*6, which code is used?
1. a(2;4,1;2)
2. a(2,4:1,2)
3. a(2:4,1:2)
4. a(2,4;1,2)
View Answer   Discuss with Members


View 1 - 10 of 88 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter