Error: Colon operands must be real scalars.

조회 수: 63 (최근 30일)
Varsha
Varsha 2025년 5월 30일
답변: Steven Lord 2025년 5월 30일
I'm getting the below error in MATLAB R2025a that did not occur in R2024b or older version,
Error: Colon operands must be real scalars.
can i know why this is occurring?

채택된 답변

Steven Lord
Steven Lord 2025년 5월 30일
This was a deliberate change in release R2025a. See page 1-30 of the PDF Release Notes for MATLAB. We issued a warning that MATLAB would error in a future release when you called the colon operator with non-scalar inputs starting in release R2024a, see page 3-21 in that PDF document.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

제품


릴리스

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by