what is the relationship between the values in the matlab command makweight and the transfer function ?
3 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Srivardhan
2023 年 7 月 10 日
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!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!