# How to write the following equation using matlab

3 views (last 30 days)

Show older comments

##### 3 Comments

### Answers (1)

Walter Roberson
on 21 Sep 2022

syms U L C R t

h(t) = 2*sin(sqrt(U*L - C*R^2)/(L*sqrt(2*L))*t) / (sqrt(C)*sqrt(4*L-C*R^2)) * exp(-t*(R/2*L))

Unfortunately you have to look very closely to see that the exponent is negative; I will remind Mathworks again that the negative exponent needs to be more clear.

You would need specific numeric values for C L R U in order to be able to plot this.

##### 7 Comments

Sam Chak
on 24 Sep 2022

Jadida, I'd suggest you show us the ordinary differential equation of RLC circuit.

We can probably use dsolve to verify if the analytical solution is the same as the equation provided by you.

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!