0% found this document useful (0 votes)
2 views3 pages

Model Questions 1

The document contains a series of MATLAB model questions focused on plotting sequences, converting numbers between different bases, and drawing various mathematical curves and surfaces. It includes tasks that require writing script files for numerical conversions and graphical representations based on user inputs. Additionally, it covers operations on lists and matrices, such as finding sums, products, and sorting using library functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Model Questions 1

The document contains a series of MATLAB model questions focused on plotting sequences, converting numbers between different bases, and drawing various mathematical curves and surfaces. It includes tasks that require writing script files for numerical conversions and graphical representations based on user inputs. Additionally, it covers operations on lists and matrices, such as finding sums, products, and sorting using library functions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Model Question on MATLAB(SEC-2)

1. Answer any one 10 × 1 = 10


n
(a) Plot first n terms of the sequence {xn }, where xn = tn for inputs n and t.
1 n

(b) Plot first n terms of the sequence {xn }, where xn = 1 + 2n for input n.
(c) Plot(bar diagram) first n terms of the sequence {xn }, where xn = (−1)n for

ge
input n and check that it has two convergent sub-sequence.
6
(d) Plot first n terms of the sequence {xn }, where xn+1 = 1+x for inputs n and

ll e
n
x1 . Hence check that it is convergent.

Co
(e) Plot first n terms of the sequence {xn }, where xn = 1 + 12 + 13 + ... + + n1 for
input n and hence check that it is divergent.
(f) Plot(bar diagram) first n terms of the sequence {xn }, where xn = sin nπ

aj
4
for
input n and hence check that it has five convergent sub-sequences.

R
n
(g) Plot(bar diagram) first n terms of the sequence {xn }, where xn = n(−1) for

al
input n and hence check that it has one convergent sub-sequence and one

ad
divergent sub-sequence.
(e) P
Determine limit of the ratio of the (n + 1)-th term and n-th term of the series

ish
un , where, un = n1 by plotting the same for n = 1, 2, ..., N , where, N is an
input from keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N ,
ah
where, N is an input from keyboard, check that this series is divergent.
:M

(f) Determine limit of the ratio of the (n + 1)-th term and n-th term of the series
un , where, un = n12 by plotting the same for n = 1, 2, ..., N , where, N is
P
ti:

an input from keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N ,
ai

where, N is an input from keyboard, check that this series is convergent.


M

P
(g) Determine limit of the n-th root of the n-th term of the series un , where,
1
un = n2 by plotting the same for n = 1, 2, ..., N , where, N is an input from
ar

keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N , where, N is


um

an input from keyboard, check that this series is convergent. P


(h) Determine limit of the n-th root of the n-th term of the series un , where,
1
K

un = n by plotting the same for n = 1, 2, ..., N , where, N is an input from


keyboard. Plotting the sum of first n terms for n = 1, 2, ..., N , where, N is
as

an input from keyboard, check that this series is convergent.


n 
an

ti−1
X 
(i) Plot first n terms of the sequence {xn }, where xn = for inputs
(i − 1)!
.M

i=1
n and t. n 
t2(i−1)
X 
Dr

i+1
(j) Plot first n terms of the sequence {xn }, where xn = (−1) =
i=1
(2(i − 1))!
t2 t4 t6 t2(n−1)
1− + − + ... + (−1)n+1 for inputs n and t.
2! 4! 6! (2(n − 1))!
n  2i−1

i+1 t
X
(k) Plot first n terms of the sequence {xn }, where xn = (−1) =
i=1
(2i − 1)!
t3 t5 t7 n+1 t2n−1
t − + − + ... + (−1) for inputs n and t.
3! 5! 7! (2n − 1)!
(l) Plot(bar diagram) first n terms of the sequence {xn }, where xn = cos nπ 4
for
input n and hence check that it has five convergent sub-sequences.
1
Prepared by: Dr. Manas Kumar Maiti, Mahishadal Raj College. For any error/ambiguity M:7908210880. 2

2. Answer any one 10 × 1 = 10


(i) Write a script file to read a positive integer and convert it into equivalent
binary number.
(ii) Write a script file to read a positive integer and convert it into equivalent
octal number.
(iii) Write a script file to read a positive integer and convert it into equivalent
number of base four.

ge
(iv) Write a script file to read a positive octal integer and convert it into equivalent

ll e
decimal number.
(v) Write a script file to read a positive octal integer and convert it into equivalent

Co
binary number.
(vi) Write a script file to read a positive binary integer and convert it into equiv-

aj
alent decimal number.

R
(vii) Write a script file to read a positive binary integer and convert it into equiv-
alent octal number.

al
(viii) Write a script file to read a set of 2D-points (x-values and corresponding

ad
y-values) and draw the curve through the points.

ish
(ix) Write a script file to draw the curve e(ax+b) for a = 1, 1.5, 2 and b = 2 in one
figure, i.e., multiple plot. The domain of definition of the function, i.e., the
ah
range of x is an input.
(x) Write a script file to draw the curve e(ax+b) for a = 1, 1.5, 2 and b = 1, 1.5, 2
:M

and store the curve in a 3 × 3 matrix plot. The domain of definition of the
ti:

function, i.e., the range of x is an input.


(xi) Write a script file to draw the curve sin (ax + b) for a = 1, 1.5, 2 and b =
ai

1, 1.5, 2 and store the curve in a 3 × 3 matrix plot. The domain of definition
M

of the function, i.e., the range of x is an input.


ar

(xii) Write a script file to draw the curve cos (ax + b) for a = 1, 1.5, 2 and b =
1, 1.5, 2, 2.5 and store the curve in a 3 × 4 matrix plot. The domain of
um

definition of the function, i.e., the range of x is an input.


(xiii) Write a script file to draw the curve eax log(bx) for a = 1, 1.5, 2 and b =
K

1, 1.5, 2, 2.5 and store the curve in a 3 × 4 matrix plot. The domain of
as

definition of the function, i.e., the range of x is an input.


x2 y 2 z 2
an

(xiv) Write a script file to draw the surface 2 + 2 + 2 for inputs a, b, c.


a b c
.M

(xv) Write a script file to draw the polar curve r = a(1 + cos θ) for a = 1, 2, 3 in
one figure, i.e., multiple plot.
(xvi) Write a script file to draw the polar curve r = a(1 + cos θ) for a = 1, 2, 3 in
Dr

a matrix plot.
(xvii) Write a script file to draw the polar curve r = a(1 − cos θ) for a = 1, 2, 3 in
one plot.
(xviii) Write a script file to draw the polar curve r = a + b cos θ for a = 1, 2, b =
1.5, 2.5 in one plot.
(xix) Write a script file to draw the polar curve r = a + b cos θ for a = 1, 2, b =
1.5, 2.5, 3 in a 2 × 3 matrix plot.
(xx) Write a script file to draw the polar curve r = aemθ for a = 1, 2, m =
1.5, 2.5, 3 in a 2 × 3 matrix plot.
Prepared by: Dr. Manas Kumar Maiti, Mahishadal Raj College. For any error/ambiguity M:7908210880. 3

(xxi) Write a script file to draw the curve y = kx5 for six input values of k and
range of x in a 2 × 3 matrix plot.
x2 y 2 z 2
(xxii) Write a script file to draw the surface 2 + 2 − 2 for inputs a, b, c.
a b c
(xxiii) Read a list of numbers and find their sum, product, maximum, and minimum
using library function.
(xxiv) Read a list of numbers and sort the list using library function. Hence find the

ge
maximum and minimum of the list.

ll e
(xxv) Read a list of numbers and find the maximum and minimum of the numbers
between m-th and n-th position, i.e., if {x1 , x2 , ..., xN } be the input list

Co
determine the minimum and maximum of the sub-list {xm , xm+1 , ..., xn } for
inputs m and n, where 1 ≤ m < n ≤ N , using library function.

aj
(xxvi) Read a list of numbers and sort the numbers between m-th and n-th position,

R
i.e., if {x1 , x2 , ..., xN } be the input list sort the sub-list {xm , xm+1 , ..., xn }
for inputs m and n, where 1 ≤ m < n ≤ N , using library function.

al
(xxv) Read a matrix of order m × N and find the sum and product of its k-th row

ad
using library function.

ish
(xxvi) Read a matrix of order m × N and find the sum and product of its k-th
column using library function.
ah
(xxvii) Read a matrix of order m × N and find the minimum and maximum of its
k-th row using library function.
:M

(xxviii) Read a matrix of order m × N and find the minimum and maximum of its
ti:

k-th column using library function.


(xxix) Read a matrix of order m × N and sort its k-th column using library function.
ai

(xxx) Read a matrix of order m × N and sort its k-th row using library function.
M
ar
um
K
as
an
.M
Dr

You might also like