plotting more than 10 graphs in one plot

12 ビュー (過去 30 日間)
Ophir Navaro
Ophir Navaro 2018 年 4 月 17 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 17 日
i need to plot the function y = c*exp(t) when c need to run between 1 to 1000. what should i need to write?

回答 (2 件)

KSSV
KSSV 2018 年 4 月 17 日
t = 0:1:60 ;
c = 1:100 ;
[T,C] = meshgrid(t,c) ;
Y = C.*exp(t) ;
surf(C,T,Y)

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 4 月 17 日
編集済み: KALYAN ACHARJYA 2018 年 4 月 17 日

%You can change C value as per desired range for c=1:1000

%Here shown for c 10 graphs only

 t=0:.1:10;
for c=1:1000
   y=c*exp(t);
   plot(y);
   hold on
end 
hold off;

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by