Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
I am getting an error when i run my code. code and error is below thank you
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
![cp5ques.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/245818/cp5ques.png)
0 comentarios
Respuestas (1)
Walter Roberson
el 31 de Oct. de 2019
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 +
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!