get_video_data.m
来自「利用matlab编了一个pendulum仿真的例子」· M 代码 · 共 20 行
M
20 行
% get_video_data.m
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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?