kle8309

22 Reputation

5 Badges

10 years, 140 days

MaplePrimes Activity


These are questions asked by kle8309

Hi,

I'm having trouble of converting my y-axis to decibel.  Here is is my script:

 

restart;
with(plots);
loglogplot(1/(1+f), f = 10^(-4) .. 10^4);

 

Everything is fine except for the y-axis, which is not in dB.

 

I have been having problems with using the BodePlot function with units:

 

R1 := 18.2*10^3*Unit('Omega');

R2 := 10^3*Unit('Omega');

C1 := 470*10^(-12)*Unit('F');

C2 := 4.7*10^(-9)*Unit('F');

# wo is in hertz

wo := 1/sqrt(R1*R2*C1*C2);

# Q is unitless

Q := wo*R1*R2*C2/(R1+R2)

 

with(DynamicSystems);

sys := TransferFunction(wo^2/(s^2+wo*s/Q+wo^2));

 

This is the error message I got:

Error, (in Units:-Standard:-+) the units `1` and `Hz` have incompatible dimensions

 

I think the problem is that the BodePlot function doesn't expect 'wo' to have units.  

So I tried to work around the issue by using the loglogplot but it doesn't seem to like 

complex function even when I used abs to find the magnitude (with or without units).

 

 Any workaround is appreciated.

I have been having trouble converting the default slew rate unit from Unit('m'^2*'kg'/('s'^4*'A'))

to V/us (Volts per microsecond)

 

I trying to get to a point where I can define the slew rate and the result will be in terms of V/us.

 

Similarly, how can I change the output result from 1/s to Hz?

Page 1 of 1