2014-04-15 4 views
1

기호 값을 사용하여 전달 함수를 사용하려고하지만 오류 만 반환합니다.기호식 전달 함수 matlab

MatLab에서 기호 모드로 변환 된 Laplace를 사용할 수 있습니까? 여기

내가 할 노력하고 있어요 예와 매트랩 메시지 오류 : 나는 어떤 결과를 전달 함수를 만드는 몇 가지 다른 형태의 시도

>> syms Ki Kp Te R; 
>> s=tf('s'); 
>> g=((Kp*s+Ki)/s) 
Error using sym>tomupad (line 1014) 
Conversion to 'sym' from 'tf' is not possible. 

Error in sym (line 139) 
      S.s = tomupad(x,''); 

Error in sym/privResolveArgs (line 823) 
        argout{k} = sym(arg); 

Error in sym/privBinaryOp (line 838) 
      args = privResolveArgs(A, B); 

Error in * (line 216) 
     X = privBinaryOp(A, B, 'symobj::mtimes'); 

:

>> sys=tf([Te],[0 Ki]) 
Error using tf (line 287) 
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector 
is nonempty and containing numeric data. Type "help tf.num" or "help tf.den" for more information. 

답변

1

답변은 Maple!입니다. 그것은 대단하며 또한 Simulink/Xcos와 같은 MapleSim이 있지만 전송 함수에서 모든 종류의 변수를 사용할 수 있습니다.

0

당신이 할 수있는 기호 변수로 전달 함수를 사용하지 마십시오. 확인하십시오 documentation on tf :

sys = tf(num,den) creates a continuous-time transfer function with numerator(s) and denominator(s) specified by num and den . The output sys is:

  • A tf model object, when num and den are numeric arrays.
  • A generalized state-space model (genss) when num or den include tunable parameters, such as realp parameters or generalized matrices (genmat).
  • An uncertain state-space model (uss) when num or den are uncertain (requires Robust Control Toolbox™ software).
+0

나는 심볼 값으로 작업 할 수있는 유사한 함수를 찾고 있음을 깨달았다. 도와 주셔서 감사합니다. – fizcris

+1

http://www.mathworks.com/matlabcentral/fileexchange/27302-syms-to-tf-conversion/을 확인하십시오. 이것은 Symbolic Math Toolbox (http://www.mathworks.co.uk/help/symbolic/numden.html)에서 numden을 사용합니다. – am304