what wrong with the script

i dont understand the problem

3 comentarios

KSSV
KSSV el 12 de Sept. de 2020
Editada: KSSV el 12 de Sept. de 2020
for a = 1:100000
if y ==a^2*(0.2^2+a^2)-a^3
fprintf("%f\n",a)
end
end
The code snippet has no meaning. What exactly you are trying?
Don't attach your code as image. Copy and paste it here.
bro
bro el 12 de Sept. de 2020
this is the question am trying to answer
bro
bro el 12 de Sept. de 2020
matlab does let me paste, i can cope but when i paste it doesnt show

Iniciar sesión para comentar.

 Respuesta aceptada

madhan ravi
madhan ravi el 12 de Sept. de 2020

0 votos

Remove {
}
And add end for each for and if.

2 comentarios

madhan ravi
madhan ravi el 12 de Sept. de 2020
doc for
doc if
bro
bro el 12 de Sept. de 2020
Editada: madhan ravi el 12 de Sept. de 2020
thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Preguntada:

bro
el 12 de Sept. de 2020

Comentada:

bro
el 12 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by