I want automatic tuning of RF filter screws

3 次查看(过去 30 天)
I want to automatically adjust the screws of the RF filter through machine learning. There aren't many examples, so I'm struggling.

采纳的回答

Star Strider
Star Strider 2023-1-4
I do not have the RF Toolbox, however creating a filter as an anonymous function with appropriate arguments (I just use the passband frequencies here) is certainly possible with these filters, Signal Processing Toolbox filters, and Control System Toolbox system objects. You can use the first approach, or you can combine the frequencies (and other parameters) in one vector (as illustrated in the second approach) and then refer to the elements of the vector in the appropriate places in the rffilter object.
It should then be possible to use the anonymous function version of your rffilter object as part of an objective function in your machine learning application.
Example —
robj = @(f1,f2) rffilter('ResponseType','Bandpass','Implementation','LC Tee','PassbandFrequency',[f1 f2], ...
'StopbandFrequency',[f1 f2].*[0.95 1.05],'PassbandAttenuation',3,'StopbandAttenuation',40);
F1 = 950E+06;
F2 = 2200E+6;
frequencies = linspace(0,2*F2,1001);
figure
rfplot(robj(F1,F2), frequencies)
robj = @(params) rffilter('ResponseType','Bandpass','Implementation','LC Tee','PassbandFrequency',[params(1) params(2)], ...
'StopbandFrequency',[params(1) params(2)].*[0.95 1.05],'PassbandAttenuation',3,'StopbandAttenuation',40);
F1 = 950E+06;
F2 = 2200E+6;
P = [F1 F2];
frequencies = linspace(0,2*P(2),1001);
figure
rfplot(robj(P), frequencies)
This uses an example from the rffilter documentation page for the filter.
.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multirate and Multistage Filters 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by