Hi, I have a problem in estimating some data up to a threshold. Basically, what I would like to do is pass a data value to an equation and then loop the calculation until it reaches a threshold. Can anyone please help?

 Akzeptierte Antwort

Thorsten
Thorsten am 24 Sep. 2015
Bearbeitet: Thorsten am 24 Sep. 2015

0 Stimmen

y = 2;
threshold = 10; % sample threshold
while y < threshold
y = y^2 % sample calculation, put your function here
end

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by