지정된 모델을 PID 제어기로 표현할 수 없어서 변환에 실패했습니다.란 에러 메시지가 떳습니다.

2 次查看(过去 30 天)
지홍 김
지홍 김 2022-6-23
回答: Ayush Modi 2023-10-30
sys = zpk([5.7184,-5.7184],[0,1.485,-0.7275+0.3625i,-0.7275-0.3625i],1)
C=pid(sys);
로 했는데 , 혹시 동적 시스템에 복소수 표현(-0.7275+0.3625i,-0.7275-0.3625i)이 있어서 에러 메시지가 뜬건가요?
그리고 복소수로도 pid제어를 구현하고 싶은데 표현할 수 있는 방법이 있나요?

回答(1 个)

Ayush Modi
Ayush Modi 2023-10-30
Hello,
제 모국어는 한국어가 아니라서, 이 질문에 영어로 답변하려고 합니다. 이해해주셔서 감사합니다.
As per my understanding, you would like to represent complex numbers in a standard format. You can achieve this using the complex array in MATLAB. You can create a complex array using the “complex” function.
z = complex(a,b)
This statement will return a complex array z with “a” as real value and “b” as the imaginary value.
Please refer to the following MathWorks documentation for more information on:
I hope this resolves the issue you were facing.

类别

Help CenterFile Exchange 中查找有关 System Identification Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!