How to write exponential function with limits?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rohail khan
am 31 Mär. 2018
Kommentiert: rohail khan
am 31 Mär. 2018
Hi, How can I write the following two functions
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171703/image.jpeg)
Can I use "piece wise" function? If yes than how to use it?
2 Kommentare
Akzeptierte Antwort
Walter Roberson
am 31 Mär. 2018
Bearbeitet: Walter Roberson
am 31 Mär. 2018
https://www.mathworks.com/matlabcentral/answers/391290-how-can-i-write-this-exponential-function-in-matlab I showed you g(x) already. You can use the same technique for U
4 Kommentare
Walter Roberson
am 31 Mär. 2018
RC = 0.04;
U = @(t) sin(100*pi*t) .* (t >= 0);
F = @(s, t) exp(-s./RC) .* U(t-s);
X = @(t) integral(@(s) F(s,t), 0, inf) ./ RC;
Xv = @(t) arrayfun(X, t);
fplot(Xv, [-1 1])
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!