フィルターのクリア

how to get variable value in plot automatically

3 ビュー (過去 30 日間)
Pallanti Srinivasa Rao
Pallanti Srinivasa Rao 2019 年 8 月 26 日
回答済み: KSSV 2019 年 8 月 26 日
how to get a plot displaying value ofgain_resp.png gain and corresponding responce in single figure as shown in attached image

回答 (1 件)

KSSV
KSSV 2019 年 8 月 26 日
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

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by