calculating the greatest percent drop from data set

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!