MATLAB Answers


How to write time dependent exponential with simple Simulink blocks

Asked by Joshua Allwright on 30 Jan 2019
Latest activity Commented on by Joshua Allwright on 30 Jan 2019
How would I write this question in simulink using simple blocks:
V= I*R*(1 -exp(-t/(C*R)) ?
I think I am missing the feed back which decays the value over time.
I don't want to use blocks which lock values (R and C), as I want to create lookup tables which change the valuse later on. (this is for 2-RC branch battery model)
Any help would be greatly appreciated!


Sign in to comment.

1 Answer

Answer by Birdman
on 30 Jan 2019

Try this attached model.


That is moving in the right direction. Will I always need to select a time constant? or can it be linked to the simulink time?
It depends on your design. You can either select a time constant manually or you can link it to Simulink time.
Can you use the 'Ts' block to do this?
Also, can I write my exponential function in terms of a transfer function?

Sign in to comment.