Advertisement
Thav

Octave control 2.3.52 - feedback.m feedout bug

Jul 27th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.80 KB | None | 0 0
  1. %Test file to show feedout problem in feedback.m on line 130 in version 2.3.52
  2.   % if (any (feedin > p1 | feedin < 1))
  3.     % error ("feedback: range of feedout indices exceeds dimensions of sys1");
  4.   % endif
  5. % Tony Olivo 2012.07.27
  6. %Constants whose values should be of little conesquence
  7. C = 3.3000e-005
  8. L = 1.0000e-005
  9. Rl =  0.050000
  10. Ro =  50
  11. %Previously worked out loaded filter description
  12. full = ss([-Rl/L -1/L; 1/C -1/(Ro*C)],[1/L; 0],[0 1])
  13. %Separate filter and load descriptions
  14. filter = ss([-Rl/L -1/L; 1/C 0],[1/L 0; 0 -1/C],[0 1])
  15. load = ss([],[],[],[0; -1/Ro])
  16. %Sizes seem to match here, with outputs of filter (p1) being equal to inputs of load (m2),
  17. % and outputs of load (p2) being equal to inputs of filter (m1)
  18. [p1,m1] = size(filter)
  19. [p2,m2] = size(load)
  20. sys4 = feedback(filter,load)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement