请问m函数中能否构建传递函数
10 次查看(过去 30 天)
显示 更早的评论
求教,m函数中能够构建传递函数
function y = fcn(u)
%#codegen
num=[1 0];
den=[1 2 1];
sys=tf(num,den);
y = sys*u;
报错如下
The 'tf' class does not support code generation.
Function 'MATLAB Function' (#38.58.69), line 5, column 5:
"tf(num,den)"
Launch diagnostic report.
Component: MATLAB Function | Category: Coder error
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!