Using a while loop to output a cube root?
Ältere Kommentare anzeigen
In the attached document, I cant seem to get the actual cube root value to come out. Could someone please look at my script file.
Antworten (1)
TastyPastry
am 8 Okt. 2015
0 Stimmen
You're not updating the estimate. Your function's loop repeatedly uses the user inputted value for intialEstimate rather than updating it as the calculation progresses. You need to fix line 6 so that the estimate is updated for each loop iteration.
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!