Unable to troubleshoot error message

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

John Doe
John Doe 2013년 5월 7일
Does size work for any other variables, or does it fail for all?
jasen
jasen 2013년 5월 7일
It fails for all. Does another library need to be invoked to use that function ?
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일

0 개 추천

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?

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

질문:

2013년 5월 7일

댓글:

2020년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by