matlab函数调用​显示调用中是否存在不​正确的参数数据类型或​缺少参数,但语句正确

조회 수: 89 (최근 30일)
向华
向华 2024년 5월 5일
답변: Harimurali 2024년 5월 14일
准确说是之前出现过5201的报错,然后卸载并重装 MathWorks Service Host,但不清楚是不是中间出了什么问题,再次正常进入matlab后之前不报错的问题开始报错,matlab重装后效果一样,无法解决函数报错问题,尝试过电脑重启、windows更新

답변 (1개)

Harimurali
Harimurali 2024년 5월 14일
Hi 向华,
由于我的母语不是中文,我将用英语回答这个问题。
"tf" function is part of the Control System Toolbox product, which is an optional product that must be licensed and installed. Follow the given steps to troubleshoot the issue you are facing:
  • Run the following command to find out which "tf" function is being called:
which -all tf
  • "MATLAB\R2022a\toolbox\control\ctrlmodels\@tf\tf.m" should be present among the results.
  • Check if Control System Toolbox is licensed and installed by using the following command:
ver control
  • Click "Adds-Ons" in the MATLAB application and download "Control Systems Toolbox", to install the Control System Toolbox if not already installed.
Hope this resolves your issue!

카테고리

Help CenterFile Exchange에서 Big Data Processing에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!