Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How I can Plots this function
조회 수: 4 (최근 30일)
이전 댓글 표시
how can write the code of this function

댓글 수: 0
답변 (2개)
Yasasvi Harish kumar
2019년 2월 16일
Hey,
This should help you.
function x = question(t)
if t >=0
x = 3*exp(-2*t);
else
x = 0;
end
end
Regards
댓글 수: 0
Star Strider
2019년 2월 16일
Another approach:
x = @(t) 3*exp(-2*t) .* (t >= 0);
t = linspace(-10,10);
figure
plot(t, x(t))
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!