how to resolve conflicts with calling the 'tf' function between different toolboxes?

4 vues (au cours des 30 derniers jours)
I am having trouble calling the function 'tf' to define transfer function variables in the Control Systems Toolbox. The problem began when I recently upgraded Matlab to 2016a (the problem didn't happen with Matlab 2014). When I type 'ver' it shows that I have the Control Systems Toolbox installed, however when I try to call the function I get this error:
Undefined function 'tf' for input arguments of type 'char'.
To try to figure out version of the function is getting called, I typed:
>> which('tf') /Applications/MATLAB_R2016a.app/toolbox/dsp/filterdesign/@mfilt/tf.m % mfilt method
Does anyone know how to get Matlab to call the Control Systems version of the function, without deleting the Filter Design Toolbox?

Réponse acceptée

Star Strider
Star Strider le 7 Août 2016
You didn’t post your relevant code, so I’m not certain how you’re calling the function. When I looked at the documentation for the two tf functions (in the Signal Processing and Control System Toolboxes) in R2016a, neither of them takes a string or character argument.
  4 commentaires
Jason
Jason le 7 Août 2016
Thank you! These commands solved the problem. I'm not sure either what went wrong with the installation... this is my first time trying to use the Control Systems Toolbox since upgrading to 2016a last week.
Star Strider
Star Strider le 7 Août 2016
My pleasure!
Such problems aren’t uncommon, and can occasionally appear out of nowhere. That’s the reason I keep that bit of code in my ‘Answers.m’ file that I use to test code I post here. I’ve also had to use it a couple times over the years.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by