Plotting 10 biggest time gaps from Historical data
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hello everyone,
I need to find 10 biggest time gaps from minute stock data and plot it. At first I founded 10 biggest time gaps from d2 array (tried to make this search faster than using cycle) : A = [d2.date]; B = [d2.date(2:end)]; C = d2.date(end); D = [B, C]; E = D-A; sortE = sort(E); x = 10 xmax = sortE(end-(x-1):end).
But from here I do not know how to plot it, that it would show not only the values of the time differences but also the date from when it started until when it ended. Should I used loop from the start? I would like to know how to plot the time differences with the dates which belong to them does not matter how. Thank you. Have a great day!
Answers (0)
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!