multiple graphs plotting error
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
ro=10; 
ri=30; 
t=0:0.1:2000; 
ci=0.5 
c_L=(ci*ri)/ro.*(1-exp(1).^((-ro.*t./((ri-ro).*t+1500))));
plot(t,c_L)
hold on 
ro=15;
ri=25;
c_L=(ci*ri)/ro.*(1-exp(1).^((-ro.*t./((ri-ro).*t+1500)))); 
plot(t,c_L)
ro=25;
ri=15;
c_L=(ci*ri)/ro.*(1-exp(1).^((-ro.*t./((ri-ro).*t+1500)))); 
plot(t,c_L)
For the interval t it should be 0 to 2000, but when I run MATLAB with that interval graph looks very weired
However, with interval 0 to 100 looks fine.
What should I do?
댓글 수: 0
채택된 답변
  Star Strider
      
      
 2021년 1월 24일
        The ‘t’ vector for the first series of curves is: 
t=0:0.1:100; 
and for the second: 
t=0:0.1:2000; 
That likely explains the difference.  
To plot ‘t’ from 0 to 2000, define ‘t’ over the desired range.  
댓글 수: 6
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
