help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error exploring a Matlab example


From: jmb
Subject: Re: Error exploring a Matlab example
Date: Tue, 21 Oct 2014 19:35:37 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

On 10/21/2014 07:16 PM, vathomas wrote:
> 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.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
>
Hello Thomas,

Wow, I am impressed by your response!  I have a lot of reading to do,
but your help is extremely useful!  Thanks a bunch.  I will experiment
with it...

Regards! JMB




reply via email to

[Prev in Thread] Current Thread [Next in Thread]