plotting more than 10 graphs in one plot

11 Ansichten (letzte 30 Tage)
Ophir Navaro
Ophir Navaro am 17 Apr. 2018
Bearbeitet: KALYAN ACHARJYA am 17 Apr. 2018
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?

Antworten (2)

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

KALYAN ACHARJYA
KALYAN ACHARJYA am 17 Apr. 2018
Bearbeitet: KALYAN ACHARJYA am 17 Apr. 2018

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by