フィルターのクリア

Extrapolating a loop to a threshold

1 回表示 (過去 30 日間)
Andrew Wileman
Andrew Wileman 2015 年 9 月 24 日
コメント済み: Andrew Wileman 2015 年 9 月 24 日
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?

採用された回答

Thorsten
Thorsten 2015 年 9 月 24 日
編集済み: Thorsten 2015 年 9 月 24 日
y = 2;
threshold = 10; % sample threshold
while y < threshold
y = y^2 % sample calculation, put your function here
end
  1 件のコメント
Andrew Wileman
Andrew Wileman 2015 年 9 月 24 日
That's great, thank you very much Thorsten.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by