필터 지우기
필터 지우기

Transfer function with symbol

조회 수: 3 (최근 30일)
Peter
Peter 2011년 10월 17일
댓글: Victor Gruner 2017년 9월 12일
Hello everyone.... I'm trying to create a transfer function with a symbol like follow...
syms K
s = tf('s');
control = K*(s+1)/(s+15);
but matlab doesn't seem to like this cuz i get an error like....
??? Error using ==> sym.sym Conversion to 'sym' from 'tf' is not possible.
Error in ==> sym.mtimes at 9 B = sym(B);
any ideas?
Thanks!

답변 (1개)

Wayne King
Wayne King 2011년 10월 17일
s = tf('s');
Creates an object of class tf. tf() is not an overloaded method in the Symbolic Toolbox.
Define your K as a constant.
K = 3;
cntrl = K*(s+1)/(s+15);
  댓글 수: 2
Peter
Peter 2011년 10월 17일
Thanks for the reply!
But is there anyway to leave K as K?
Victor Gruner
Victor Gruner 2017년 9월 12일
up

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by