nextcb.m
来自「基于matlab的反演程序,用于地球物理勘探中射线追踪及偏移成像程序.」· M 代码 · 共 2 行
M
2 行
function nextcb(action)
[shots, k, axeslist] = cvpinfo('get');
[numshotpairs tmp] = size(shots);
if( strcmp(action,'next') )
if(isempty(k))
k = 1;
else
k = k+1;
end
end
if( strcmp(action,'prev') )
if(isempty(k))
k = numshotpairs;
else
k = k-1;
end
end
if( k < 1 )
k = 1;
disp('Beginning of shot pair range reached.');
end
if( k > numshotpairs )
k = numshotpairs;
disp('End of shot pair range reached.');
end
cvpinfo('set', shots, k, axeslist);
editcvp('run');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?