지정된 모델을 PID 제어기로 표현할 수 없어서 변환에 실패했습니다.란 에러 메시지가 떳습니다.
2 views (last 30 days)
Show older comments
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제어를 구현하고 싶은데 표현할 수 있는 방법이 있나요?
0 Comments
Answers (1)
Ayush Modi
on 30 Oct 2023
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:
• Complex Numbers: https://www.mathworks.com/help/matlab/complex-numbers.html
I hope this resolves the issue you were facing.
0 Comments
See Also
Categories
Find more on System Identification Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!