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

📄 visual.m

📁 In the planning stage of a GNSS-measurement campaign it is useful to compute several design para-met
💻 M
📖 第 1 页 / 共 5 页
字号:
function visual (action, option1);% for help use the command 'help visualhelp'if nargin < 1; action  = 'initialize'; end;if nargin < 2; option1 = 'none';       end;switch action;    case 'initialize'        oldFigNumber  = watchon;        % -----------------------------------        % --- Create a full-screen figure ---        % -----------------------------------        ScreenSize    = get (0,'Screensize');        ScreenSize(1) = ScreenSize(1)+2;        ScreenSize(2) = ScreenSize(2)+40;        ScreenSize(3) = ScreenSize(3)-5;        ScreenSize(4) = ScreenSize(4)-90;        figNumber = figure ('Name','Visualization of GNSS-related design parameters', ...            'Position',ScreenSize,'Color',[0 0 0],'NumberTitle','off','Visible','off');        % ---------------------------------------        % --- Axis, for the plot and colorbar ---        % ---------------------------------------        axes('position',[0.875 0.005 0.15 0.05])        [im,map] = imread('logo.png');        image(im)        axis image        axis off                hf = axes ('units','normalized', 'Position',[0.09 0.07 0.75 0.4], ...            'Fontsize',8,'Color',[1 1 1], 'XColor',[1 1 1], 'YColor',[1 1 1], ...            'Xgrid','on','Ygrid','on', 'Xtick',[-180:30:180],'Ytick',[-90:30:90], ...            'Box','on','Visible','on','Tag','PictureAxis');        hc = axes ('units','normalized', 'Position',[0.87 0.07 0.040 0.40], ...            'Color',[1 1 1], 'XColor',[1 1 1], 'YColor',[1 1 1],...            'Fontsize', 8,'Xtick',[],'Visible','off','Tag','ColorBarAxis');                            h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'FontWeight','Bold',...            'Position',[0.005 0.003 0.4 0.025], ...            'String','Copyright 2006 Delft Institute of Earth Observation and Space Systems (DEOS)', ...            'HorizontalAlignment','left', ...            'BackgroundColor',[0 0 0],...            'Foregroundcolor',[1 1 1]);        % ----------------------------------------        % --- Information for all edit-boxes   ---        % ----------------------------------------        editWidth           = 0.1;        editHeight          = 0.025;        editSpacing         = 0.001;        editBackgroundColor = [1.00 1.00 1.00];        textBackgroundColor = [0 0.70 0.70];        % --------------------        % --- system-frame ---        % --------------------        frmBorder      = 0.015;        frmPosition    = zeros(1,4);        frmPosition(1) = 0.0575;        frmPosition(2) = 1 - (10*editHeight + 9*editSpacing + 3*frmBorder);        frmPosition(3) = 2*editWidth + 1*editSpacing + 2*frmBorder;        frmPosition(4) = 10*editHeight + 9*editSpacing + 2*frmBorder;        h = uicontrol ( 'Style','frame','Units','normalized', ...            'Position',frmPosition,'BackgroundColor', [0 0.70 0.70]);        % -----------------        % system choice ---        % -----------------        textLeft1   = frmPosition(1) + frmBorder;        textBottom = 1 - 2*frmBorder - (editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'FontWeight','Bold',...            'Position',[textLeft1 textBottom+editSpacing editWidth editHeight], ...            'String','system:', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textLeft   = textLeft1 + (editWidth+editSpacing);        textBottom = 1 - 2*frmBorder - (editHeight+editSpacing);        h = uicontrol (...            'Style','Popupmenu', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','GPS|GLONASS|GALILEO|GPS+GALILEO', ...            'Tag','system',...            'Callback',['visual syst'],...            'Value',1);        textBottom = 1 - 2*frmBorder - 2*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','almanac file', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 2*(editHeight+editSpacing);        almanac = 'yumaGPS.txt';        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String',almanac,...            'Tag','almanac');        textBottom = 1 - 2*frmBorder - 3*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','almanac file 2', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 3*(editHeight+editSpacing);        almanac2 = 'yumaGAL.txt';        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',[.8 .8 .8], ...            'String',almanac2,...            'Tag','almanac2',...            'Enable','Off');        textBottom = 1 - 2*frmBorder - 4*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','start date & time', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 4*(editHeight+editSpacing);        editWidthd = 0.65*editWidth;                h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidthd editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String',datestr(now,1),...            'Tag','startdate');                textLeftt = textLeft + 0.65*editWidth;        editWidtht = 0.35*editWidth;                h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeftt textBottom editWidtht editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','0:00',...            'Tag','starttime');                            textBottom = 1 - 2*frmBorder - 5*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','end date & time', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 5*(editHeight+editSpacing);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidthd editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String',datestr(now,1),...            'Tag','enddate');                h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeftt textBottom editWidtht editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','24:00',...            'Tag','endtime');                 textBottom = 1 - 2*frmBorder - 6*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','number of epochs', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 6*(editHeight+editSpacing);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','1',...            'Tag','nepochs',...            'Callback',['visual nepochs']);        textBottom = 1 - 2*frmBorder - 7*(editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','time interval [s]', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        textBottom = 1 - 2*frmBorder - 7*(editHeight+editSpacing);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','300',...            'Tag','intv');        textBottom = textBottom - (editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','cutoff elevation', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Edit', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','15',...            'Tag','cutoff');        textBottom = textBottom - (editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','scenario', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Popupmenu', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','single point|single baseline|geometry-free',...            'Tag','scenario',...            'Value',2);        textBottom = textBottom - (editHeight+editSpacing);        h = uicontrol ( ...            'Style','Text', ...            'Units','normalized', ...            'Position',[textLeft1 textBottom editWidth editHeight], ...            'String','receiver', ...            'HorizontalAlignment','left', ...            'BackgroundColor',textBackgroundColor);        h = uicontrol (...            'Style','Popupmenu', ...            'Units','normalized', ...            'Position',[textLeft textBottom editWidth editHeight], ...            'HorizontalAlignment','center', ...            'BackgroundColor',editBackgroundColor, ...            'String','stationary|roving',...            'Tag','receiver',...            'Value',1);        % -------------------------        % --- observation-frame ---        % -------------------------        frmBorder      = 0.015;        frmPosition    = zeros(1,4);        frmPosition(1) = 2*editWidth + editSpacing + 3*frmBorder + 0.0575;        frmPosition(2) = 1 - (10*editHeight + 9*editSpacing + 3*frmBorder);        frmPosition(3) = 4*editSpacing + 26*frmBorder;        frmPosition(4) = 10*editHeight + 9*editSpacing + 2*frmBorder;        h = uicontrol ('Style','frame','Units','normalized', ...            'Position',frmPosition,'BackgroundColor', [0 0.70 0.70]);        % ----------------------        % observation choice ---        % ----------------------        editWidth1  = 5*frmBorder;

⌨️ 快捷键说明

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