calculating the greatest percent drop from data set

2 Ansichten (letzte 30 Tage)
John Jamison
John Jamison am 22 Feb. 2017
Bearbeitet: Walter Roberson am 23 Feb. 2017
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

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by