- Define variables using syms.
- Form the differential equation.
- Set Initial Condition.
- Get the solution using dsolve.
How to get a transfer function for a dynamic model that is only a function of time?
조회 수: 5 (최근 30일)
이전 댓글 표시
Thank you for your time!
If you have a nonlinear dynamic model like this
where y is the output and u is the input. You can linearize it using taylor series in order to be able to get the trasnfer function easier.
What about if you dynamic model that is only a function of time?
and you know y0 = f(t0)
Does matlab have any tool to acomplish this?
I want to get a transfer function for a dynamic model that is enterely a function of time.
댓글 수: 0
답변 (1개)
Guru Mohanty
2020년 1월 24일
Hi, I understand you are trying get transfer function from a differential equation having only one variable i.e. time. It can be done using MATLAB symbolic toolbox.
Here is a sample code for your reference.
clc;
clear all;
syms y(t)
eqn = diff(y,1)==exp(t)*sin(t); % Differential Equation
cond = y(0)==0; % Initial Condition
y_sol = dsolve(eqn,cond);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!