help me for work with Octave

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

help me for work with Octave

toraj sohrabi
                                                                 This error message occurs when I want to use software to solve control problems. Please help fix these bugs

                                                  
>> G=tf(num_G,den_G);
error: 'tf' undefined near line 1, column 1

The 'tf' function belongs to the control package from Octave Forge which
you have installed but not loaded.  To load the package, run 'pkg load
control' from the Octave prompt.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
>>


Reply | Threaded
Open this post in threaded view
|

Re: help me for work with Octave

Doug Stewart-4


On Sun, Apr 4, 2021 at 6:24 PM toraj sohrabi <[hidden email]> wrote:
                                                                 This error message occurs when I want to use software to solve control problems. Please help fix these bugs

                                                  
>> G=tf(num_G,den_G);
error: 'tf' undefined near line 1, column 1

The 'tf' function belongs to the control package from Octave Forge which
you have installed but not loaded.  To load the package, run 'pkg load
control' from the Octave prompt.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
>>

You must load the control pkg.

load control



--
DASCertificate for 206392



Reply | Threaded
Open this post in threaded view
|

Re: help me for work with Octave

nrjank
Administrator
In reply to this post by toraj sohrabi
The 'tf' function belongs to the control package from Octave Forge which
you have installed but not loaded.  To load the package, run 'pkg load
control' from the Octave prompt.

The message tells you how to fix your problem.  Octave packages are not loaded by default because some can change otherwise expected octave behavior.  So you must load the package first. 

pkg load control

will load the package and let you run the tf function.