필터 지우기
필터 지우기

Subscript indices must either be real positive integers or logicals.

조회 수: 1 (최근 30일)
Don
Don 2019년 6월 14일
댓글: madhan ravi 2019년 7월 14일
This is such a simple request, but I cannot find an answer
A =
1.0000 1.0000 0.3333 0.1429 0.1111
1.0000 1.0000 0.3333 0.2000 0.2000
3.0000 3.0000 1.0000 2.0000 0.2000
7.0000 5.0000 0.2500 1.0000 0.3333
9.0000 5.0000 5.0000 3.0000 1.0000
disp(A)
Subscript indices must either be real positive integers or logicals.
All i want is to display the matrix. Can someone help please? Thanks in advance 10^6

답변 (2개)

madhan ravi
madhan ravi 2019년 6월 14일
clear all % and try again
  댓글 수: 1
madhan ravi
madhan ravi 2019년 6월 14일
You have a variable named disp in your workspace so clear it using clear all or clear disp.

댓글을 달려면 로그인하십시오.


Soumya Sinha
Soumya Sinha 2019년 6월 17일
Check whether the value of A has been varied somewhere during the course of the program.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by