フィルターのクリア

Index exceeds matrix dimensions. But I barely did anything yet.

1 回表示 (過去 30 日間)
Yihan Hu
Yihan Hu 2017 年 11 月 18 日
コメント済み: Star Strider 2017 年 11 月 18 日
<<
>>Please help me. I want to define a transfer function and it stopped me here. I tried using matlab on a different pc and it worked out fine.

採用された回答

Star Strider
Star Strider 2017 年 11 月 18 日
You probably have a variable named ‘tf’ somewhere in your workspace.
To find out, run this from your Command Window or a script:
which tf -all
if the first result is:
tf is a variable.
you have found the problem. (This is called ‘overshadowing’ a function. It is to be avoided.)
The solution is to rename the variable to something that is not the same as a MATLAB function.
  2 件のコメント
Yihan Hu
Yihan Hu 2017 年 11 月 18 日
Thank you so much!!!! It is fixed
Star Strider
Star Strider 2017 年 11 月 18 日
As always, my pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by