Octave problem with solution

8 visualizaciones (últimos 30 días)
David Vujic
David Vujic el 30 de Jun. de 2020
Respondida: Rik el 30 de Jun. de 2020
Hi,
I new to programming, and I have a problem in Octave/Matlab. I have to solve this equation, solution is theta = 1.1725, but I always get 2,3213. Where is the problem code ? q =1
  1 comentario
KSSV
KSSV el 30 de Jun. de 2020
Copy the oce here...not image snippet...

Iniciar sesión para comentar.

Respuestas (1)

Rik
Rik el 30 de Jun. de 2020
You misplaced one dot: the division is currently a matrix division, instead of an element-wise operation. Note that subtraction is always element-wise, so the dot there is not needed.

Categorías

Más información sobre Octave en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by