Unable to troubleshoot error message

2 ビュー (過去 30 日間)
jasen
jasen 2013 年 5 月 7 日
コメント済み: Walter Roberson 2020 年 11 月 29 日
Aa = [0 1 0 ; 0 0 1 ; 0 -2025 -90]
Aa =
0 1 0
0 0 1
0 -2025 -90
>> sz=size(Aa) Error using InputOutputModel/subsref (line 44) Subscript no. 2 is out of range.
  4 件のコメント
caizheng yang
caizheng yang 2020 年 11 月 29 日
It can be solved by restarting the APP or the computer
Walter Roberson
Walter Roberson 2020 年 11 月 29 日
You created a variable named size that is of datatype InputOutputModel

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

回答 (1 件)

Image Analyst
Image Analyst 2013 年 5 月 8 日
This code:
Aa = [0 1 0 ; 0 0 1 ; 0 -2025 -90]
sz=size(Aa)
works fine for me. No error message whatsoever. What are you not telling us? What information have you left out? LIke, did you redefine size? What does this say
which -all size
Does it look like
built-in (C:\Program Files\MATLAB\R2013a\toolbox\matlab\elmat\size)
size is a built-in method % containers.Map method
size is a Java method % java.util.ArrayList method
size is a Java method % java.util.AbstractList method
size is a Java method % java.util.AbstractCollection method
size is a Java method % java.util.Collection method
size is a Java method % java.util.List method
and so on? Or does it have some function listed that you wrote and is living in one of your folders?

カテゴリ

Help Center および File ExchangeAutomated Driving Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by