Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. conn = yahoo('http://download.finance.yahoo.com');
  2. IBM = fetch(conn,{'IBM'},{'Adj Close'}, '2012-01-01','2015-08-01','d');
  3. MO = fetch(conn,{'MO'},{'Adj Close'}, '2012-01-01','2015-08-01','d');
  4.  
  5. %IBM = [datestr(IBM(:,1),2) IBM(:,2)]
  6. %MO = [datestr(MO(:,1),2) MO(:,2)]
  7.  
  8. IBM = cellstr([datestr(IBM(:,1),2)])
  9. MO = cellstr([datestr(MO(:,1),2)])
  10.  
  11. IBM = {cellstr([datestr(IBM(:,1),2)]) IBM(:,2)}
  12. MO = {cellstr([datestr(MO(:,1),2)]) MO(:,2)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement