Index exceeds matrix dimensions. But I barely did anything yet.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Yihan Hu
am 18 Nov. 2017
Kommentiert: Star Strider
am 18 Nov. 2017
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169803/image.png)
>>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.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 18 Nov. 2017
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!