[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error exploring a Matlab example
From: |
vathomas |
Subject: |
Re: Error exploring a Matlab example |
Date: |
Tue, 21 Oct 2014 16:16:00 -0700 (PDT) |
Hi JMB,
Pade function is not implemented, but you can do the approximation yourself.
There are tables on the internet providing the coefficients, for example
here: http://en.wikipedia.org/wiki/Pad%C3%A9_table
Another way is to use the "pade" function from the development branch of
control package:
https://bitbucket.org/paramaniac/control-time-delay/src/f631625ecbd537ed3b0ef30d770a8126e13d3446/inst/pade.m?at=default
Please be advised, calling the function with an LTI (like ss, or tf) as
input argument, will error out for sure. But using the function as:
>> [num, den] = pade(theta, N)
>> Gp = tf(num,den)/(1+tau*s)
where N is the order of the approximation, should do the job.
Also if you want how good the approximation is just type
>> pade(theta, N)
and a comparison plot should appear.
Best,
Thomas
--
View this message in context:
http://octave.1599824.n4.nabble.com/Error-exploring-a-Matlab-example-tp4667068p4667076.html
Sent from the Octave - General mailing list archive at Nabble.com.