📄 w5_rb_di.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% w5_rb_display.m
%
% jmw
% 6/10/94
%
% User-Specified Mapping Window.
% decodes which display mode user selects, and turns on button's
% indicator.
%
% Also, for SEGMENT display mode, increments the displayed segment
% each time the SEGMENT button is pushed.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%message_window_segment;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%signal=signal_store;
done_flag = 0;
% disp('starting w5_rb_display');
for i=1:MAXDISPLAYS,
W5NEWDISPLAY(i)=get(w5_rb_display_h(i),'Value');
if (W5NEWDISPLAY(i) ~= W5DISPLAY(i) & done_flag~=1)
% change has occured here
done_flag = 1; % halt further processing
for j=1:MAXDISPLAYS, % reset ALL to zero
set(w5_rb_display_h(j),'Value',0);
W5DISPLAY(j) = 0;
end;
% set active to one
set(w5_rb_display_h(i),'Value',1);
W5DISPLAY(i) = 1;
end;
end;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% if the RB was Segment, AND flag was set, increment
% DISPLAYSEG
if (W5DISPLAY(1) == 1 & SEGFLAG == 1)
DISPLAYSEG = DISPLAYSEG + 1;
if (DISPLAYSEG > MAXRB+1)
DISPLAYSEG = 1;
end;
end;
if (W5DISPLAY(1) == 1 )
SEGFLAG = 1;
else
SEGFLAG = 0;
end;
% DISPLAYSEG
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% call display program
%signal=signal_store;
w5_di
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear done_flag
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -