how to add legend for each of my gains in nyuiqust plot ?
3 views (last 30 days)
Show older comments
tomer polsky on 3 Jun 2020
Answered: Ananya Tewari on 19 Jun 2020
So I want to ask to make a nyquist olot for diffrent Gains (k) and also that it will be written for each of the nyquist plot what is the current k . how to do it ?
clc;clear all;close all;
% sys = zpk(Z,P,K)
K=[20 30 40 50 60 65]
sys_1 = zpk(,-1 ,K(i));
legend('Gain(K) is=' ,num2str(K(i)'))
Ananya Tewari on 19 Jun 2020
Hi Tomer ,
I understand you want different legend according to value of Gain(K)
Rather than using
legend('Gain(K) is=' ,num2str(K(i)')
You can use
value = ['Gain(K) is=', num2str(K(i))];
Find more on Plot Customization 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!