Matlab Test

You might also like

You are on page 1of 1

Q.1) Plot the equations f(x) = x2 -2x-3 on the interval [-1, 3] and h = e0.

1 t sin (2t) on interval [0, 24 ]. Properly label the graphs, apply color and legend. Make sure that the graphs are to displayed in separate plots. Q.2) Consider the following table: x y 4 54 2 49 1 44 1/2 39 1/4 34 1/8 28

Now generate the arrays x and y. Draw the graph accordingly. Q.3) What will be the output of following command: Size(zeros(2,5)) Ones(length(k)) % where K= [1 2 3 4;5 6 7 8;9 10 11 12]

Q.4) Define the following: i) Formats used in Matlab for representation of numbers ii) Difference between clc and clear iii) Difference between who and whos Q.5) Generate the table of 6 from 1 to 10 by writing suitable commands.(for eg: 5 6 30)

You might also like