TA的每日心情 | 开心 2022-1-24 15:10 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
求教,m函数中能够构建传递函数
& G* B- U' O* Nfunction y = fcn(u)+ q, I0 s4 C$ T, {9 B+ b
%#codegen: `* q7 T5 M9 R: t- w* a' H
num=[1 0];9 ]' ~) F$ {/ e
den=[1 2 1];8 w6 h" c7 O7 d" a, Y
sys=tf(num,den);" M7 R8 c( w$ F& n" {: C
y = sys*u;( m- n9 s i' i3 F' t$ x
报错如下$ b" Z% O3 Y2 |1 E+ }6 m1 N1 T
The 'tf' class does not support code generation.
: `3 L! G# y7 _9 d9 L& p
8 I4 b& k+ s9 LFunction 'MATLAB Function' (#38.58.69), line 5, column 5:6 i1 R: R# s2 }" D' u# R
"tf(num,den)"
! {: G9 t$ C2 U/ v t8 OLaunch diagnostic report.
: {" Z2 I- ^- @3 P, vComponent: MATLAB Function | Category: Coder error5 a! T: g# N+ s- p; w
- k. e% s% w' ?
- X6 e3 s* n, I( b( ^0 Q
R& L6 q4 W4 t4 o- d" v9 Y- O$ D' l2 `0 t
# y* Q# A) h/ @. T# O, M2 }
6 L+ n5 z- E' Z, D. k- o4 @
0 _$ N' n; O8 j: G, e6 g0 R2 } |
|