2
votes

I'm beginner in Octave. I'm sorry if I ask a silly question.

I want to use feedback function in Control package. I installed this package, using following command.

pkg install -forge control

The Installation seems to be successful, and following directory is automatically generated.

~/octave/control-2.6.5

But Octave says following messages when I enter "feedback" in Octave.

warning: the 'feedback' function belongs to the control package from Octave Forge but has not yet been implemented.

"feedback.m" file exists in "~/octave/control-2.6.5/@lti". How do I use this .m file.

Any help would be appreciated. Thanks in advance.

OS: Ubuntu 14.04LTS

Octave version: 3.8.1

1
see the package documentation which lists all of its functions. - carandraug
on Octave version 5.1.0 this is still the case, but it seems you can use feedback, just, at the CLI, help feedback is weird, as is simply typing feedback. - Josh.F

1 Answers

5
votes

You have to load it before you can use it. Just execute

 pkg load control

on the octave prompt.

Edit:

After this you can do:

s1 = tf (1, [1 2]);
s2 = tf (1, [1 5]);
cl = feedback (s1, s2)

which outputs:

Transfer function 'cl' from input 'u1' to output ...

          s + 5     
 y1:  --------------
      s^2 + 7 s + 11

Use bode and step to evaluate the result. If you want help type help @lti/feedback on the octave prompt.