need help in my matlab

profileabonayan
hw_no.1_f2016.doc

San Francisco State University

School of Engineering

ENGR 290-02 Fall 2016

Introduction to MATLAB V.V.Krishnan

Home Work Assignment (Week No.1)

NOTE: Make sure you know how to post your solution on iLearn. Cut and paste all your command window operations and the corresponding answers to the WORD file you will be submitting for this assignment

1. Use the HELP browser to find out what the following functions do. Write a one-line note for each function describing what the function does

a. sum

b. var

c. size

d. poly

e. sqrt

2. Use MATLAB in the calculator mode to compute the following

a. (2/5)(2-x)÷(3xy2) for x=1.5, y=3

b. 2log(√2)+3e2

c. 54/43/2

d. sin(π/4)cos-1(π/4)

e. (3+2.5/1.6)1.4(16e-1.2)

3. Note: Attempt this problem only after you have finished the previous two problems.

The unit step response, c(t), of a second-order system (such as a simple RLC circuit in EE or a Mass-Spring-Dashpot system in CE and ME) is given by the expression c(t) = 1 –

image1.wmf

)

cos(

)

(

2

1

1

1

2

f

w

x

xw

x

-

-

-

-

t

e

n

t

n

where
image2.wmf

)

(

tan

2

1

1

x

x

f

-

-

=

Using (n = 5 rad/sec and (=0.5, compute the value of c(t) for t= 0.1 to 1 sec. in steps of 0.1 sec. Plot the response c(t) as a function of time.

.

_1123876221.unknown

_1123876186.unknown