Filter löschen
Filter löschen

what is the relationship between the values in the matlab command makweight and the transfer function ?

8 Ansichten (letzte 30 Tage)
In loop shaping ,what is the relationship betwen the values of the command W1 = makeweight(100,10,0.1); and the result W1=0.1 s + 9.95/S+0.0995 ?
on the way around , if I know the transfer function W1=0.1 s + 9.95/S+0.0995, how can I kno wthe command makeweight W1 = makeweight(100,10,0.1) ?
Thank you for help in advance

Antworten (1)

Srivardhan
Srivardhan am 10 Jul. 2023
Hi Zaidan,
As per my understanding, you would like to convert the transfer function into the “makeweight” function form.
In MATLAB, the "makeweight" command returns the numerator and denominator of the transfer function. The "makeweight” function’s general form is W = makeweight (hcgain, [freq,mag], hfgain). If the second parameter is only an integer ‘wc’ then it indicates mag = 1 and freq = wc.
Here is the code to get coefficients of the transfer function from “makeweight” function you can check:
W1 = makeweight (100,10,0.1);
% Extract the numerator and denominator coefficients
[num, den] = tfdata(W1, 'v');
disp(num)
disp(den)
Let the transfer function be W(s), from the transfer function we can calculate manually the Dcgain, Hfgain and magnitude at some frequency(wc):
dcgain = W (0).
hfgain = W (inf)
| W(j*wc) | = 1.
For further reference, please check the following link to know more about “makeweight” function in MATLAB.
I hope this helps!

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by