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

  • Thread starter Thread starter khedira
  • Start date Start date
  • Tags Tags
    Matlab Plot
Click For Summary
SUMMARY

The discussion centers on converting a transfer function from the s-domain to the t-domain using MATLAB's ilaplace function. The user initially encountered an error when attempting to plot the resulting t-domain equation due to improper syntax and lack of a defined time range. The solution involved defining a range for the variable t and correctly using the syntax plot(t, a(t)) to successfully generate the plot.

PREREQUISITES
  • Understanding of transfer functions and their representation in the s-domain and t-domain.
  • Familiarity with MATLAB programming, specifically the ilaplace function.
  • Knowledge of symbolic mathematics in MATLAB.
  • Experience with plotting functions in MATLAB.
NEXT STEPS
  • Learn how to define time ranges in MATLAB for plotting.
  • Explore MATLAB's symbolic toolbox for advanced mathematical computations.
  • Study the implications of transfer function analysis in control systems.
  • Investigate error handling in MATLAB plotting functions.
USEFUL FOR

Control engineers, MATLAB users, and students studying systems dynamics who need to visualize transfer functions in the t-domain.

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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K