How do I plot this on MATLAB
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
V(t)=100e^(-t/100u)*u(t-100u)        The u next to the 100's is actually mu.
I cant figure out out to plot this. I tried V=100*exp(-10000*t).*heaviside(t-.0001) but it just spat out a straight line along 0. 
댓글 수: 0
답변 (2개)
  Star Strider
      
      
 2018년 11월 26일
        A guess: 
ustp = @(t) t>0;                                     % Unit Step Function
mu = 100;
V = @(t) 100*exp(-t/(100*mu)).*ustp(t-100*mu);
t = linspace(0, 1E+5);
figure
plot(t, V(t))
grid
I understand that ‘u’ as a variable is μ, however your using the heaviside function seems to indicate that one of the ‘u’ uses is the unit step function operator.  
댓글 수: 0
  ahmed nebli
      
 2018년 11월 26일
        
      편집: ahmed nebli
      
 2018년 11월 26일
  
      you can run it in a for loop (each time incrementing the value of t) , store the values of v in a vector and plot the vector. check the diffrent plotting option in matlab documentation.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


