On 02/08/12 18:35, Thomas D. Dean wrote:
> I am using Maple 15.
>
I want to create a transfer function to model a DAC with limited input
and 1lsb noise.
restart; with(DynamicSystems)
eqn:=piecewise(c<6553,ztrans((5*6553)/(2^16-1),c,z),c>58982,
ztrans((5*58982)/(2^16-1),c,z),ztrans((5*c)/(2^16-1),c,z));
dac:=TransferFunction(eqn, sampletime = 30):PrintSystem(dac);
## does not like the non-rational poly, but, creates the tf, anyway
Warning, transfer-function(s) are not rational-polynomial(s) in z
How do I handle random noise on the order of 1 lsb?
eqn:=ztrans(1+'rand(1..100)'/100,c,z);
dacNoise:=TransferFunction(eqn,sampletime=30);
## and, maple really does not like this, returning an error
Error, (in DynamicSystems:-FormatTF) invalid arguments to sort
How do I do this?
Tom Dean