POLES, ZEROES INTO MESSAGE BOX
Mostra commenti meno recenti
Hi,
Can someone figure out how to let poles, zeroes, gains all values show into message box? The format i've created doesn't show other values. This is for my project. Thanks!!
numerator = inputdlg('Enter the coefficients of the numerator of transfer function:','Numerator',[1 50]);
num = str2num(numerator{1});
denominator = inputdlg('Enter the coefficients of the denominator of transfer function:','Denominator',[1 50]);
den = str2num(denominator{1});
[z,p,k] = tf2zp(num,den);
poles = {p};
zeroes = {z};
gains = {k};
Gs = tf(num,den)
TF = evalc('Gs');
result = msgbox(sprintf(' %.4f + %.4fi',poles{:}),"Poles");
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Structures in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!