필터 지우기
필터 지우기

Editing CSFUNC, not working without C,D matrices

조회 수: 3 (최근 30일)
reen2015
reen2015 2011년 10월 28일
I am trying to implement a continious function using S function, i tried editing csfunc file in toolbox/simulink/blocks
but the file is not working without C and D matrix . I have only A and B matrices of the system and i need to calculate dx/dt=Ax+Bu
As output i need the state vector x
I am learning to implement Sfunction and will highly appreciate your help,Thank you,Have a nice day
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 10월 28일
Please explain what you mean by "the file is not working without C and D matrix"? Have you eliminated all uses of 'C' and 'D'? What error/incorrect behavior do you see?

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

채택된 답변

Omur
Omur 2011년 11월 21일
C and D matrices are necessary in a state-space representation, you cannot skip them. But they are easy to find.
As you said, your output is your state vector. So this makes C = identity matrix the size of your state vector and D=0.

추가 답변 (1개)

reen2015
reen2015 2011년 11월 30일
Thank u kastubha and omur. i got it correct.

카테고리

Help CenterFile Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by