Converting Transfer Function to T-Domain | Matlab Plot Help Needed

  • Thread starter Thread starter khedira
  • Start date Start date
  • Tags Tags
    Matlab Plot
khedira
Messages
11
Reaction score
0
i need to convert my transfer function to t-domain format and then plot the graph of the equivalent t-domain equation. i am using the ilaplace function to convert the s-domain transfer function to the t-domain equation.

my code is

>> f = (s + 3.1)/(s^2 +3.1*s + 2.23)

f = (s+31/10)/(s^2+31/10*s+223/100)

>> a = ilaplace(f)

a = (1/2-31/138*69^(1/2))*exp(-1/20*(69^(1/2)+31)*t)+(1/2+31/138*69^(1/2))*exp(1/20*(-31+69^(1/2))*t)

>> plot(a)
? Error using ===> plot
Conversion to double from sym is not possible.

May i know how can i plot the graph of the transfer function in t-domain? Any advise is appreciated. Thank you!
 
Physics news on Phys.org
First of all, you never gave the range of t for the plot.
Secondly,(if I recall correctly) you should write plot(t,a(t)) not plot(a).
 
╔(σ_σ)╝ said:
First of all, you never gave the range of t for the plot.
Secondly,(if I recall correctly) you should write plot(t,a(t)) not plot(a).

yes, you are right, i declared a range for t and it's working. Thank you.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top