Is it possible to map a block diagram transfer function system on MATLAB?
7 views (last 30 days)
I was given a task where I had to map this system:
on MATLAB and then solve this very same system on Matlab.
The thing is, I can solve it normally on paper but I do not know how to map this out on MATLAB THEN solve it from there. Believe me, I have tried searching for answers online but have found nothing so far.
Therefore it would be very helpful if I was shown how to map these kinds of systems out on MATLAB.
Thank you very much in advance.
Raynier Suresh on 19 Jan 2021
One possible way is, you can define the block diagram as an equation and then solve it with the help of symbolic math toolbox.
For Example, to solve this block diagram in MATLAB the code below can be used.
syms R G H C
eqns = (R - H*C)*G == C
Ctmp = solve(eqns,C)
TF = simplify(Ctmp/R)