Code covered by the BSD License  

Highlights from
Gravity Measurement Case Study

image thumbnail

Gravity Measurement Case Study

by

 

08 Jul 2003 (Updated )

Scientific imaging case study with MATLAB and toolboxes.

get_video_data.m
% get_video_data.m

% Copyright 2003-2010 The MathWorks, Inc.

imaqreset
hw=imaqhwinfo('winvideo');      %create video object

if length(hw.DeviceIDs)>0
  msg='Grab live data from camera or load captured data from file?';
  button=questdlg(msg,'Data source','Grab','Load','Load');
  switch button
    case 'Grab'
      setup_live_capture
    case 'Load'
      load_captured_data
    otherwise
      error('user aborted program')
  end
else
  load_captured_data
end

Contact us