Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

I am getting an error when i run my code. code and error is below thank you

조회 수: 1 (최근 30일)
alexis cordova
alexis cordova 2019년 10월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
cp5ques.PNG

답변 (1개)

Walter Roberson
Walter Roberson 2019년 10월 31일
You have the form
[A +B;
C - D]
The bottom row of that is a binary operation between two scalar values, and gives a scalar result. The bottom row is scalar.
The top row is two scalar expressions, one of which happens to be preceeded by unary plus. Just like [3 -5] is the pair (3, -5), [3 +5] is the pair (3,+5). The top row is a vector of two values.
To solve the problem you can either code A+B with no space, or you can code A + B with space after the +

이 질문은 마감되었습니다.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by