How to write exponential function with limits?

2 visualizaciones (últimos 30 días)
rohail khan
rohail khan el 31 de Mzo. de 2018
Comentada: rohail khan el 31 de Mzo. de 2018
Hi, How can I write the following two functions
Can I use "piece wise" function? If yes than how to use it?
  2 comentarios
Rik
Rik el 31 de Mzo. de 2018
Do you want a symbolic function, or an anonymous function?
rohail khan
rohail khan el 31 de Mzo. de 2018
Actually I have a RC circuit with some values.I just want to use the above function in the following equation to solve the circuit.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 31 de Mzo. de 2018
Editada: Walter Roberson el 31 de Mzo. de 2018
  4 comentarios
Walter Roberson
Walter Roberson el 31 de Mzo. de 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])
rohail khan
rohail khan el 31 de Mzo. de 2018
wow thats amazing.Its working.I spend the whole day yesterday but couldnt solve it.Thank you sooooooooo much Walter

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by