Question

%Transfer function % H(s) = 0.000037/s^2 + 0.003512s + 0.000004 H = tf([0.000037],[1 0.003512 0.000004]); step(H,3600);...

%Transfer function
% H(s) = 0.000037/s^2 + 0.003512s + 0.000004

H = tf([0.000037],[1 0.003512 0.000004]);
step(H,3600);
grid

Above is my code. How can I set the initial value for the output?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In transfer function model the initial condition are always assumed to be zero.

You have to convert it to either space state model or you need to use simulink model to solve it.

For converting it to state space model you just need to give following command in your command window

[A,B,C,D] = tf2ss(b,a)

In your case it will be

b = [0.000037];

a = [ 1 0.003512 0.000004] ;

Now suppose you got

A = [a1, a2 ; a3, a4 ]

C = [c1 , c2 ] and lets suppose your initial condition is

X0 = [x1 ; x2 ];

To get the response you can give the command

 sys = ss(A,[],C,[]); initial(sys,X0)

OR other way is through SIMULINK MODEL

Add a comment
Know the answer?
Add Answer to:
%Transfer function % H(s) = 0.000037/s^2 + 0.003512s + 0.000004 H = tf([0.000037],[1 0.003512 0.000004]); step(H,3600);...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • a.) Given the transfer function TF(s) = A/(s+ 8)(s - 5). What type of reponse do...

    a.) Given the transfer function TF(s) = A/(s+ 8)(s - 5). What type of reponse do you expect for a step change in input voltage. b.)Given transfer function TF(s) = 10 7/(s 2 + 4480 s + 10 7 ). Determine the gain A, the damping coefficient and the natural frequency of this system. C.)The transfer function of a systems has a (s 2 + 2s +5) term in the denominator. This indicates that it is a what order system?...

  • Using the Following Functions G()1672) and H() - 54 S+1 s(s+2) 1. Enter the G(s) and H(s) functio...

    Please answer number two in detail. Thanks. Using the Following Functions G()1672) and H() - 54 S+1 s(s+2) 1. Enter the G(s) and H(s) functions. (Take advantage of using either symbolic tool or entering vector format with Commands like tf to generate the transfer function.) Your goal is to find the following: a) X(s) G(s) H(s) Y(s) Cascade system b) X1(s) G(s) Y(s) Parallel System X2(s) H(s) c) Feedback System (Hint: Use commands like cascade(tf), parallel(tf) and feedback(tf)) 2. Use...

  • (s + 1) X X H(s) Figure 2 a) Find H(s) so that the closed loop...

    (s + 1) X X H(s) Figure 2 a) Find H(s) so that the closed loop (effective) transfer function of the system is (s + 9999) (s + 10000)(8 + 1) b) For typical step inputs, approximate the closed-loop system by a good first order system transfer function. Justify your approximation. c) What is the time constant of this first-order system. How long will it take for the system output to reach a value within 2% of the final steady-state...

  • 3. Consider an LTI system with transfer function H(s). Pole-zero plot of H(s) is shown below....

    3. Consider an LTI system with transfer function H(s). Pole-zero plot of H(s) is shown below. Im O--- Re (a) How many ROCs can be considered for this system? (b) Assume system is causal. Find ROC of H(S) (c) Assume y(t) is system output with step unit as input. Given lim yết) = 5 , Find H(s). (d) (optional) Find y(2) (y(t) for t = 2).

  • 5. Consider an LTI system with transfer function H(s). Pole-zero plot of H(s) is shown below....

    5. Consider an LTI system with transfer function H(s). Pole-zero plot of H(s) is shown below. Im (a) How many ROCs can be considered for this system? (b) Assume system is causal. Find ROC of H(S) (c) Assume y(t) is system output with step unit as input. Given lim y(t) = 5 , 00 Find H(s).

  • MATLAB code. Open loop TF D(s) Matlab Code: a=conv([1 0], [1 1]) b=conv([1 5], [1 10])...

    MATLAB code. Open loop TF D(s) Matlab Code: a=conv([1 0], [1 1]) b=conv([1 5], [1 10]) D=conv(a,b) N=1 sys=tf(N, D) rlocus(sys) roots([4 16*3 65*2 50]) OUTPUT Matlab: a = 1 1 0 b = 1 15 50 D = 1 16 65 50 0 N = 1 sys = 1 ---------------------------- s^4 + 16 s^3 + 65 s^2 + 50 s Continuous-time transfer function. ans = -8.2399 -3.3005 -0.4596 Question: How to change this code to closed loop TF with:...

  • 3. You are given a system transfer function belowl 20 points): 100 (1 +0.001 je) TF(a) a. Convert...

    3. You are given a system transfer function belowl 20 points): 100 (1 +0.001 je) TF(a) a. Convert TF(o) to transfer function H (s) of the system in polynomial ratio form. Draw a Bode plot using Matlab statements: tf and bode. List two commands to plot Bode chart. b. There are two cutoff frequencies at low and high from the poles. Estimate lower cut off frequencies (from 40 dB to 37db) from the Bode plot using "data cursor" icon in...

  • Using the Following Functions G(s) = 1 and H(s) = 1 1. Enter the G(s) and...

    Using the Following Functions G(s) = 1 and H(s) = 1 1. Enter the G(s) and H(s) functions. (Take advantage of using either symbolic tool or entering vector format with Commands like tf to generate the transfer function.) Your goal is to find the following a) X(5) - O Y ) Cascade system b) XI(6) — 6) → Y(s) Parallel System X2(8) — 20) R(S) O G() Yes H(s) Feedback System (Hint: Use commands like cascade(tf), parallel(tf) and feedback(tt)) 2....

  • Exercise 1 (Transfer Function Analysis) MATLAB provides numerous commands for working with polyno...

    Please do part C only, thank you. Exercise 1 (Transfer Function Analysis) MATLAB provides numerous commands for working with polynomials, ratios of polynomials, partial fraction expansions and transfer functions: see, for example, the commands roots, poly, conv, residue, zpk and tf (a) Use MATLAB to gener ate the continuous-time transfer function H5+15)( +26(s+72) s(s +56)2(s2 +5s +30) H(s) displaying the result in two forms: as (i) the given ratio of factors and (ii) a ratio of two polynomials. (b) Use...

  • Solve the following using MATLAB: 3. Consider the transfer function: H S ) = 6 2s2...

    Solve the following using MATLAB: 3. Consider the transfer function: H S ) = 6 2s2 + 6s 2s4 + 8 s +3 .4 L + 3 a) Write lines of code to find the zeros and poles of the above transfer function. b) Write lines of code to find a partial fraction expansion of the above transfer function.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT