plotting more than 10 graphs in one plot

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일

0 개 추천

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일

0 개 추천

%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;

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2018년 4월 17일

편집:

2018년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by