command window
>> h = actxserver ('ProgID');
>> h.registerevent({'DataReady' 'h_plot'});
%m-script
%event handler
function h_plot( varargin )
data = h.GetData;
plot(data(1,:))
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!