what wrong with the script

i dont understand the problem

3 Commenti

KSSV
KSSV il 12 Set 2020
Modificato: KSSV il 12 Set 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 il 12 Set 2020
this is the question am trying to answer
bro
bro il 12 Set 2020
matlab does let me paste, i can cope but when i paste it doesnt show

Accedi per commentare.

 Risposta accettata

madhan ravi
madhan ravi il 12 Set 2020

0 voti

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

2 Commenti

doc for
doc if
bro
bro il 12 Set 2020
Modificato: madhan ravi il 12 Set 2020
thanks

Accedi per commentare.

Più risposte (0)

Categorie

Prodotti

Richiesto:

bro
il 12 Set 2020

Commentato:

bro
il 12 Set 2020

Community Treasure Hunt

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

Start Hunting!

Translated by