⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visual.m

📁 In the planning stage of a GNSS-measurement campaign it is useful to compute several design para-met
💻 M
📖 第 1 页 / 共 5 页
字号:
            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Popupmenu', ...            'Units','normalized', ...            'Position',[textLeft2 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','one point|area|world',...            'Callback',['visual location'], ...            'Tag','locchoice',...            'Value',3);        h = uicontrol ( ...            'Style','Text', ...            'FontWeight','normal',...            'Units','normalized', ...            'Position',[textLeft3 textBottom editWidth1 editHeight], ...            'String','resolution [deg]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft4 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[1 1 1], ...            'String','5',...            'Tag','resol',...            'Enable','On');        textBottom1 = textBottom - editHeight - editSpacing;        h = uicontrol (...            'Style','radiobutton', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom1 editWidth1 editHeight], ...            'String','point in map', ...            'BackgroundColor',textBackgroundColor, ...            'Callback',['visual coordinates point'], ...            'Tag','point', ...            'Value',1,...            'Enable','Off');                 h = uicontrol ( ...            'Style','Text', ...            'FontWeight','normal',...            'Units','normalized', ...            'Position',[textLeft3 textBottom1 editWidth1 editHeight], ...            'String','station height [m]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft4 textBottom1 editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[1 1 1], ...            'String','0',...            'Tag','height');               textBottom1 = textBottom1 - editHeight -editSpacing;        h = uicontrol (...            'Style','radiobutton', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom1 editWidth1 editHeight], ...            'String','type:', ...            'BackgroundColor',textBackgroundColor, ...            'Callback',['visual coordinates type'], ...            'Tag','type', ...            'Value',0,...            'Enable','Off');        textBottom =  textBottom1 - editHeight -editSpacing;        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth1 editHeight], ...            'String','latitude 1 [deg]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = textBottom - editHeight -editSpacing;        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth1 editHeight], ...            'String','longitude 1 [deg]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = textBottom1 - editHeight -editSpacing;        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft3 textBottom editWidth1 editHeight], ...            'String','latitude 2 [deg]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = textBottom - editHeight -editSpacing;        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft3 textBottom editWidth1 editHeight], ...            'String','longitude 2 [deg]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = textBottom1 - editHeight -editSpacing;        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft2 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[0.8 0.8 0.8], ...            'String','50',...            'Tag','lat1',...            'Enable','Off');        textBottom = textBottom - editHeight -editSpacing;        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft2 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[0.8 0.8 0.8], ...            'String','3',...            'Tag','long1',...            'Enable','Off');        textBottom = textBottom1 - editHeight -editSpacing;        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft4 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[0.8 0.8 0.8], ...            'String','52',...            'Tag','lat2',...            'Enable','Off');        textBottom = textBottom - editHeight -editSpacing;        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft4 textBottom editWidth2 editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[0.8 0.8 0.8], ...            'String','5',...            'Tag','long2',...            'Enable','Off');                % ------------------------------------------        % --- Information for all action buttons ---        % ------------------------------------------        LabelColor = [0.8 0.8 0.8];        yInitPos   = 0.90;        xPos       = 0.88;        btnWidth   = editWidth;        btnHeight  = 0.03;        btnSpacing = 0.01;        % ------------------------        % --- The button-frame ---        % ------------------------        frmBorder      = 0.015;        frmPosition    = zeros(1,4);        frmPosition(1) = 2*editWidth + 5*editSpacing + 30*frmBorder + 0.0575;        frmPosition(2) = 1 - (15.5*editHeight + 11*editSpacing + 6*frmBorder);        frmPosition(3) = 2*editWidth + 1*editSpacing + 2*frmBorder;        frmPosition(4) = 5.5*editHeight + 3*editSpacing + 2*frmBorder;        h = uicontrol ('Style','frame', 'Units','normalized', ...            'Position',frmPosition, 'BackgroundColor', [0 0.70 0.7]);        % --------------------        % --- Close button ---        % --------------------        btnLeft  = frmPosition(1) + 0.01 + btnWidth + btnSpacing;        btnBottom =  frmPosition(2)  + frmBorder + editHeight + editSpacing;        btnPosition = [btnLeft btnBottom btnWidth btnHeight];        CloseHndl = uicontrol ( 'Style','Push', ...            'Units','normalized','Position',btnPosition, ...            'String','CLOSE','Backgroundcolor',[0 0.82 0.82],'Callback','close(gcf)');        % -------------------        % --- Info button ---        % -------------------        btnBottom1 =   frmPosition(2)  + frmBorder + 3*editHeight + 3*editSpacing;        btnPosition = [btnLeft btnBottom1 btnWidth btnHeight];        InfoHndl = uicontrol ( 'Style','Push', ...            'Units','normalized', 'Position',btnPosition,'Backgroundcolor',[0 0.82 0.82], ...            'String','HELP','Callback','visual(''info'')');        % -----------------------        % --- defaults button ---        % -----------------------        btnLeft  = frmPosition(1) + 0.01;        btnPosition = [btnLeft btnBottom btnWidth btnHeight];        InfoHndl = uicontrol ('Style','Push', 'Units','normalized', ...            'Position',btnPosition,'String','DEFAULTS','Backgroundcolor',[0 0.82 0.82], ...            'Callback',['visual defaults']);        % ---------------        % --- compute ---        % ---------------        btnPosition = [btnLeft btnBottom1 btnWidth btnHeight];        InfoHndl = uicontrol ( 'Style','Push','Units','normalized','Backgroundcolor',[0 0.82 0.82], ...            'Position',btnPosition, 'String','APPLY','Callback',['visual compute']);             %__________________________________________________________________________________        visual ('initialFigure','now');        % --------------------------------        % --- activate user-interface ----        % --------------------------------        hndlList=[CloseHndl InfoHndl];        set(figNumber,'Visible','on','UserData',hndlList);        watchoff(oldFigNumber);        figure(figNumber);        h1 = msgbox ('Click left mouse button in figure to zoom in, right mouse button to zoom out');    case 'compute'        visualcompute            case 'syst'        SYSTEM = get(findobj(gcf,'Tag','system'),'Value');        set(findobj(gcf,'Tag','codesel'),'Value',1);        set(findobj(gcf,'Tag','phasesel'),'Value',1);        if SYSTEM < 4            set(findobj(gcf,'Tag','almanac2'),'Enable','Off','Backgroundcolor',[.8 .8 .8],'String','yumaGAL.txt');        end        if SYSTEM==1            almanac = ['yumaGPS.txt'];        elseif SYSTEM==2            almanac = ['yumaGLO.txt'];        elseif SYSTEM==3            almanac = ['yumaGAL.txt'];        elseif SYSTEM==4            set(findobj(gcf,'Tag','almanac2'),'Enable','On','Backgroundcolor',[1 1 1],'String','yumaGAL.txt');            almanac = ['yumaGPS.txt'];        end        set(findobj(gcf,'Tag','almanac'),'String',almanac );        if SYSTEM<3            set(findobj(gcf,'Tag','pE1'),'Value',0,'Enable','Off');            set(findobj(gcf,'Tag','pE5a'),'Value',0,'Enable','Off');            set(findobj(gcf,'Tag','pE5b'),'Value',0,'Enable','Off');            set(findobj(gcf,'Tag','pE6'),'Value',0,'Enable','Off');            set(findobj(gcf,'Tag','sigp1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigp2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigp3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigp4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigc1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigc2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigc3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','sigc4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ap1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ap2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ap3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ap4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ac1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ac2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ac3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ac4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);                       set(findobj(gcf,'Tag','ep1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ep2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ep3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ep4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ec1b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ec2b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ec3b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);            set(findobj(gcf,'Tag','ec4b'),'Enable','Off','Backgroundcolor',[0.8 0.8 0.8]);              set(findobj(gcf,'Tag','sigp1'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.003');            set(findobj(gcf,'Tag','sigc1'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.3');            set(findobj(gcf,'Tag','sigp2'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.003');            set(findobj(gcf,'Tag','sigc2'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.3');            set(findobj(gcf,'Tag','ap1'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');            set(findobj(gcf,'Tag','ac1'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');            set(findobj(gcf,'Tag','ap2'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');            set(findobj(gcf,'Tag','ac2'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');            set(findobj(gcf,'Tag','ep1'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');            set(findobj(gcf,'Tag','ec1'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');            set(findobj(gcf,'Tag','ep2'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');            set(findobj(gcf,'Tag','ec2'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');            set(findobj(gcf,'Tag','pL1'),'Value',1,'Enable','On');            set(findobj(gcf,'Tag','pL2'),'Value',1,'Enable','On');            if SYSTEM ==1                set(findobj(gcf,'Tag','pL5'),'Value',0,'Enable','On');                set(findobj(gcf,'Tag','pL2L1'),'Value',0,'Enable','On');                set(findobj(gcf,'Tag','ep3'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');                set(findobj(gcf,'Tag','ec3'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');                set(findobj(gcf,'Tag','ep4'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');                set(findobj(gcf,'Tag','ec4'),'Enable','On','Backgroundcolor',[1 1 1],'String','10');                set(findobj(gcf,'Tag','ap3'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');                set(findobj(gcf,'Tag','ac3'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');                set(findobj(gcf,'Tag','ap4'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');                set(findobj(gcf,'Tag','ac4'),'Enable','On','Backgroundcolor',[1 1 1],'String','0');                set(findobj(gcf,'Tag','sigp3'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.003');                set(findobj(gcf,'Tag','sigc3'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.3');                set(findobj(gcf,'Tag','sigp4'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.003');                set(findobj(gcf,'Tag','sigc4'),'Enable','On','Backgroundcolor',[1 1 1],'String','0.4');            else                set(findobj(gcf,'Tag','pL5'),'Value',0,'Enable','Off');                set(findobj(gcf,'Tag','pL2L1'),'Value',0,'Enable','Off');                set(findobj(gcf,'Tag','sigp3'),'Enable','Off','Backgroundcol

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -