calculating the greatest percent drop from data set

1 回表示 (過去 30 日間)
John Jamison
John Jamison 2017 年 2 月 22 日
編集済み: Walter Roberson 2017 年 2 月 23 日
Hi everyone,
I am stuck on this problem (see attached).
I currently have
for i = 1:length(dataset);
currHigh = dataset(i, HIGH);
if currHigh > previousHigh;
previousHigh = currHigh;
end
currDrop = dataset(i, LOW) ./ currHigh;
end

回答 (0 件)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by