I’m one of those geeks who loves doing everything in MATLAB. Data Analysis: Check. Search Google: Check. Write Reports: Check. Now I can add one more item to my list, keeping up with my stocks. Thanks to Brian Kiernan’s clever Real-Time Stock Viewer I can now have a stock ticker running from within MATLAB all day long. It uses a live feed to Yahoo (it works with Bloomberg, too) to get real-time data on a single stock at a time. If only it could tell me when to sell my losers …
This is a nice example of using MATLAB’s timer object (introduced in R13, I believe) to run a process continually without blocking MATLAB.
Note: This submission requires the Datafeed Toolbox to get live stock quotes. If you don’t have it, you’ll have to live with random stock data.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。