Substitute s for jw in a transfer function
Ältere Kommentare anzeigen
Hi, I have a transfer function define by
G = ([1 2],[3 4 5]) (as an example)
I want to change the 's' for 'jw'. Does anyone know how to do it?
I've tried subs(G,{s},{1j*omega}) but it didn't work.
Akzeptierte Antwort
Weitere Antworten (1)
Pat Gipper
am 11 Jan. 2021
0 Stimmen
Matlab uses the reserved constant "i" which is set equal to sqrt(-1). Using your transfer function as defined try the following which will result in the variable "G" which will be a complex number.
num=1*i*w+2;den=3*(i*w)^2+4*i*w+5;G=num/den;
2 Kommentare
Pat Gipper
am 11 Jan. 2021
Bearbeitet: Pat Gipper
am 11 Jan. 2021
Based on some of your other questions it looks like you don't have access to the Control Systems Toolbox. So you need to do this arithmetic explicitly.
Inés Bodoque
am 11 Jan. 2021
Kategorien
Mehr zu Time-Domain Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!