![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/340225/image.jpeg)
How to generate time dependent exponential terms in Simulink?
조회 수: 51 (최근 30일)
이전 댓글 표시
채택된 답변
Roger J
2020년 8월 1일
I did it with a "Matlab function" which you can add to the simulink diagram like any other element.
When you double click the "Matlab function" the matlab editor opens, and you can use the following:
function y = fcn(u)
y = exp(-2*u);
Next I tied a "Ramp source" to the "Matlab function" input, and it works nicely.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/340225/image.jpeg)
If this is what you want please mark this as the answer.
댓글 수: 0
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!