Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %Test file to show feedout problem in feedback.m on line 130 in version 2.3.52
- % if (any (feedin > p1 | feedin < 1))
- % error ("feedback: range of feedout indices exceeds dimensions of sys1");
- % endif
- % Tony Olivo 2012.07.27
- %Constants whose values should be of little conesquence
- C = 3.3000e-005
- L = 1.0000e-005
- Rl = 0.050000
- Ro = 50
- %Previously worked out loaded filter description
- full = ss([-Rl/L -1/L; 1/C -1/(Ro*C)],[1/L; 0],[0 1])
- %Separate filter and load descriptions
- filter = ss([-Rl/L -1/L; 1/C 0],[1/L 0; 0 -1/C],[0 1])
- load = ss([],[],[],[0; -1/Ro])
- %Sizes seem to match here, with outputs of filter (p1) being equal to inputs of load (m2),
- % and outputs of load (p2) being equal to inputs of filter (m1)
- [p1,m1] = size(filter)
- [p2,m2] = size(load)
- sys4 = feedback(filter,load)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement