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

1 visualizzazione (ultimi 30 giorni)
지홍 김
지홍 김 il 23 Giu 2022
Risposto: Shreshth il 4 Mar 2025
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제어를 구현하고 싶은데 표현할 수 있는 방법이 있나요?

Risposte (1)

Shreshth
Shreshth il 4 Mar 2025
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.

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!