Code covered by the BSD License  

Highlights from
Real-Time Datafeed from Yahoo!

Real-Time Datafeed from Yahoo!


Eric Johnson (view profile)


30 Jun 2008 (Updated )

Extension of Datafeed Toolbox's Yahoo object, allowing real-time data to be fetched

function b = subsref(a,s)
%SUBSREF Subscripted reference for Datafeed Toolbox object.

%   Author(s): C.F.Garvin, 06-21-99
%   Copyright 1999-2002 The MathWorks, Inc.
%   $Revision: 1.3 $   $Date: 2002/04/14 16:23:40 $

tmp = struct(a);    %Get object structure

switch s(1).type
  case '.'     %Access fields of object
    eval(['b = tmp.' s(1).subs ';'])
  otherwise    %Return object
    b = tmp;

Contact us