Installed package is not working

8 次查看(过去 30 天)
Samara
Samara 2024-10-16
回答: Steven Lord 2024-10-16
I downloaded the controls and systems package and it shows installed in my app manager, however when I type ver 'controls' into the command window, it says it cannot find anything named 'controls.' I'm wondering how to ammend this as I would like to use the tf function. I have already uninstalled and reinstalled the package with no fix. Thanks in advance!

回答(1 个)

Steven Lord
Steven Lord 2024-10-16
In order to see Control System Toolbox in the output of ver, specify 'control' (singular) instead of 'controls' (plural).
ver controls
------------------------------------------------------------------------------------------------- MATLAB Version: 24.2.0.2754538 (R2024b) Update 1 MATLAB License Number: 40912989 Operating System: Linux 5.15.0-1062-aws #68~20.04.1-Ubuntu SMP Wed May 1 15:24:09 UTC 2024 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode -------------------------------------------------------------------------------------------------
Warning: No properly formatted Contents.m file was found for toolbox 'controls'.
ver control
------------------------------------------------------------------------------------------------- MATLAB Version: 24.2.0.2754538 (R2024b) Update 1 MATLAB License Number: 40912989 Operating System: Linux 5.15.0-1062-aws #68~20.04.1-Ubuntu SMP Wed May 1 15:24:09 UTC 2024 x86_64 Java Version: Java 1.8.0_292-b10 with AdoptOpenJDK OpenJDK 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------- Control System Toolbox Version 24.2 (R2024b)
To check if the tf object from that toolbox is available, ask which.
which tf
/MATLAB/toolbox/control/ctrlmodels/@tf/tf.m % tf constructor

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by