MATLAB Answers

MATLAB system. The ' tf ' class does not support code generation.

26 views (last 30 days)
ZHAO HONG QIU
ZHAO HONG QIU on 10 May 2016
Commented: Bartha Balazs on 11 Apr 2018
Hello everyone, When I want to do a Matlab system in Simulink, I encountered some errors.
Then this is my Function code
function out = NF(in,f_back12)
%#codegen
f1=f_back12;
Wr=2*pi*f1;
Sr=0.0707;
testNF=tf([1 (2*Wr*Sr) Wr^2],[1 (2*Wr*0.707) Wr^2]);
out=in*testNF;
end
Finally, it is an error occurred.
I want to how to generate the transfer function in Function?
Please help me, thank you

  2 Comments

Bartha Balazs
Bartha Balazs on 11 Apr 2018
I'm facing the sane issue :( did you found any solution ?

Sign in to comment.

Answers (0)

Sign in to answer this question.