%% 绘制总框
HandleGUI.hFigure = figure();
HandleGUI.hFigure.Units = 'normalized';
HandleGUI.hFigure.Position = [ 0.05, 0.08, 0.85, 0.80, ]; %...图像位置,相对于屏幕归一化的“左下点的坐标\width\height”
HandleGUI.hFigure.MenuBar = 'none'; %...菜单
HandleGUI.hFigure.ToolBar = 'figure'; %...工具栏
HandleGUI.hFigure.Resize = 'off'; %...为on时可以改变图像size
HandleGUI.hFigure.Name = 'display'; %...figure名%% 绘制总框信息
HandleGUI.hTextInformation4 = uicontrol(HandleGUI.hFigure,'Style','text','fontsize',12);%create a text of UIControl object
HandleGUI.hTextInformation4.Units = 'normalized';
HandleGUI.hTextInformation4.Position = [0.24 0.90 0.25 0.04];
HandleGUI.hTextInformation4.String = '数据:';
HandleGUI.hTextInformation4.FontSize = 11;%% 画一个mesh图
HandleGUI.hRDM3D = axes(HandleGUI.hFigure);
HandleGUI.hRDM3D.Units = 'normalized';
HandleGUI.hRDM3D.Position = [ 0.37, 0.1, 0.3, 0.3, ];
HandleGUI.hRDM3D.Box = 'on';
rangeAxis = (0:511);
velocityAxis = (0:127);
HandleGUI.meshRDM = mesh(HandleGUI.hRDM3D, velocityAxis,rangeAxis,zeros(512,128));
xlabel('速度');ylabel('距离');
title('RDM');
HandleGUI.meshRDM.ZData = dataRDM;
view(HandleGUI.hRDM3D,[-5,50])
运行结果
其他说明
UIControl
view([Az,El])