How to use the zplane command in app designer

3 vues (au cours des 30 derniers jours)
Eshaan Jain
Eshaan Jain le 12 Nov 2022
Réponse apportée : cr le 12 Nov 2022
I have to make a pole-zero plot on a Matlab app without a pop-up
t = -pi:0.01:pi;
num1 = poly(zer);
dem1 = poly(pol);
num = flip(num1);
dem = flip(dem1);
[h,w] = freqz(num,dem,t);
% h = abs(h);
plot(app.UIAxes2, w,h);
xlim(app.UIAxes2,[-pi pi]);
% zplane(num1,dem1)
title('Pole-Zero plot')
plot(app.UIAxes,zplane(num1,dem1))

Réponse acceptée

cr
cr le 12 Nov 2022
I dont think zplane() has a syntax to pass in handle to target axes. Instead plot zeros and poles separately using plot function which can be used in plot(app.UIAxes,...) syntax.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by