how to get variable value in plot automatically
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
how to get a plot displaying value of gain and corresponding responce in single figure as shown in attached image
Antworten (1)
KSSV
am 26 Aug. 2019
x = 0:10 ;
figure
hold on
for i = 1:3
y = i*x ;
plot(x,y)
end
legend
OR
x = 0:10 ;
figure
hold on
for i = 1:3
y = i*x ;
plot(x,y)
str = ['k=',num2str(i)] ;
text(mean(x),mean(y),str)
end
0 Kommentare
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!