Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. str={"USD":{"last":352.49,"bid":352.49,"ask":353.6,
  2. "high":358.75,"low":349.34,"volume":6678.7783}.....
  3.  
  4. colvector=[352.49,352.49,353.6,358.75,349.34,6678.7783]
  5.  
  6. fmt=['{"USD":{"last": "%f", "bid": "%f", "ask": "%f",
  7. "high": "%f", "low": "%f", "volume": "%f"}...
  8.  
  9. s = 'str={"USD":{"last":352.49,"bid":352.49,"ask":353.6,"high":358.75,"low":349.34,"volume":6678.7783}.';
  10.  
  11. result = cellfun(@str2num, regexp(s, 'd+(.d+)?', 'match'));
  12.  
  13. result =
  14.  
  15. 1.0e+003 *
  16.  
  17. 0.3525 0.3525 0.3536 0.3588 0.3493 6.6788
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement