Raskolbasss
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору dimitriy7 Надеюсь, это последняя просьба по этой программе)) Суть в том, что мне надо было изменить чуть чуть интерфейс, причем по сути осталось все так же. Я через guide сделал интерфейс, сделал кнопку - открыть...и на этом мои успехи закончились... можешь новую программу совместить со старой??? Добавлено: function h1 = gotov_export22() % This is the machine-generated representation of a Handle Graphics object % and its children. Note that handle values may change when these objects % are re-created. This may cause problems with any callbacks written to % depend on the value of the handle at the time the object was saved. % This problem is solved by saving the output as a FIG-file. % % To reopen this object, just type the name of the M-file at the MATLAB % prompt. The M-file and its associated MAT-file must be on your path. % % NOTE: certain newer features in MATLAB may not have been saved in this % M-file due to limitations of this format, which has been superseded by % FIG-files. Figures which have been annotated using the plot editor tools % are incompatible with the M-file/MAT-file format, and should be saved as % FIG-files. load gotov_export22.mat appdata = []; appdata.GUIDEOptions = mat{1}; appdata.lastValidTag = 'figure1'; appdata.GUIDELayoutEditor = []; appdata.initTags = struct(... 'handle', [], ... 'tag', 'figure1'); h1 = figure(... 'Units','points',... 'PaperUnits',get(0,'defaultfigurePaperUnits'),... 'Color',[0.894117647058824 0.941176470588235 0.901960784313726],... 'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],... 'DockControls','off',... 'IntegerHandle','off',... 'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),... 'MenuBar','none',... 'Name','Исследование фазы сигнала',... 'PaperPosition',get(0,'defaultfigurePaperPosition'),... 'PaperSize',get(0,'defaultfigurePaperSize'),... 'PaperType',get(0,'defaultfigurePaperType'),... 'Position',[389.25 168 616.5 431.25],... 'Resize','off',... 'HandleVisibility','callback',... 'Tag','figure1',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'axes1'; h2 = axes(... 'Parent',h1,... 'Units','characters',... 'Position',[14.8 31.923076923077 140.2 7.76923076923077],... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'GridLineStyle','-',... 'LooseInset',[20.8 4.67923076923077 15.2 3.19038461538462],... 'XColor',get(0,'defaultaxesXColor'),... 'YColor',get(0,'defaultaxesYColor'),... 'ZColor',get(0,'defaultaxesZColor'),... 'Tag','axes1',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); h3 = get(h2,'title'); set(h3,... 'Parent',h2,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.5 1.06435643564356 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h4 = get(h2,'xlabel'); set(h4,... 'Parent',h2,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.498573466476462 -0.232673267326733 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h5 = get(h2,'ylabel'); set(h5,... 'Parent',h2,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.0406562054208274 0.49009900990099 1.00005459937205],... 'Rotation',90,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h6 = get(h2,'zlabel'); set(h6,... 'Parent',h2,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.106276747503566 1.56930693069307 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'axes2'; h7 = axes(... 'Parent',h1,... 'Units','characters',... 'Position',[94.6000000000001 18.6153846153846 60.2 7.76923076923077],... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'LooseInset',[20.8 4.67923076923077 15.2 3.19038461538462],... 'XColor',get(0,'defaultaxesXColor'),... 'YColor',get(0,'defaultaxesYColor'),... 'ZColor',get(0,'defaultaxesZColor'),... 'Tag','axes2',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); h8 = get(h7,'title'); set(h8,... 'Parent',h7,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.5 1.06435643564356 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h9 = get(h7,'xlabel'); set(h9,... 'Parent',h7,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.496677740863787 -0.232673267326733 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h10 = get(h7,'ylabel'); set(h10,... 'Parent',h7,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.09468438538206 0.49009900990099 1.00005459937205],... 'Rotation',90,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h11 = get(h7,'zlabel'); set(h11,... 'Parent',h7,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-1.57308970099668 3.28217821782178 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'text21'; h12 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.756862745098039 0.866666666666667 0.776470588235294],... 'Position',[5.40000000000003 1.84615384615385 36.8 10.1538461538462],... 'String',blanks(0),... 'Style','text',... 'Tag','text21',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'axes3'; h13 = axes(... 'Parent',h1,... 'Units','characters',... 'Position',[94.6000000000001 3.30769230769231 60.2 7.76923076923077],... 'CameraPosition',[0.5 0.5 9.16025403784439],... 'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),... 'Color',get(0,'defaultaxesColor'),... 'ColorOrder',get(0,'defaultaxesColorOrder'),... 'LooseInset',[20.8 4.67923076923077 15.2 3.19038461538462],... 'XColor',get(0,'defaultaxesXColor'),... 'YColor',get(0,'defaultaxesYColor'),... 'ZColor',get(0,'defaultaxesZColor'),... 'Tag','axes3',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); h14 = get(h13,'title'); set(h14,... 'Parent',h13,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.5 1.06435643564356 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h15 = get(h13,'xlabel'); set(h15,... 'Parent',h13,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[0.496677740863787 -0.232673267326733 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','cap',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h16 = get(h13,'ylabel'); set(h16,... 'Parent',h13,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','center',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-0.09468438538206 0.490099009900989 1.00005459937205],... 'Rotation',90,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','bottom',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','on',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); h17 = get(h13,'zlabel'); set(h17,... 'Parent',h13,... 'Units','data',... 'FontUnits','points',... 'BackgroundColor','none',... 'Color',[0 0 0],... 'DisplayName',blanks(0),... 'EdgeColor','none',... 'EraseMode','normal',... 'DVIMode','auto',... 'FontAngle','normal',... 'FontName','Helvetica',... 'FontSize',10,... 'FontWeight','normal',... 'HorizontalAlignment','right',... 'LineStyle','-',... 'LineWidth',0.5,... 'Margin',2,... 'Position',[-1.57308970099668 5.25247524752475 1.00005459937205],... 'Rotation',0,... 'String',blanks(0),... 'Interpreter','tex',... 'VerticalAlignment','middle',... 'ButtonDownFcn',[],... 'CreateFcn', {@local_CreateFcn, [], ''} ,... 'DeleteFcn',[],... 'BusyAction','queue',... 'HandleVisibility','off',... 'HelpTopicKey',blanks(0),... 'HitTest','on',... 'Interruptible','on',... 'SelectionHighlight','on',... 'Serializable','on',... 'Tag',blanks(0),... 'UserData',[],... 'Visible','off',... 'XLimInclude','on',... 'YLimInclude','on',... 'ZLimInclude','on',... 'CLimInclude','on',... 'ALimInclude','on',... 'IncludeRenderer','on',... 'Clipping','off'); appdata = []; appdata.lastValidTag = 'text20'; h18 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.756862745098039 0.866666666666667 0.776470588235294],... 'Position',[46.2 1.76923076923077 39.4 10.1538461538462],... 'String',blanks(0),... 'Style','text',... 'Tag','text20',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text1'; h19 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',14,... 'FontWeight','light',... 'Position',[94.6000000000001 11.9230769230769 60.2 4.15384615384615],... 'String','Спектральная плотность мощности исходного сигнала',... 'Style','text',... 'Value',1,... 'Tag','text1',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text2'; h20 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',14,... 'FontWeight','light',... 'Position',[94.6000000000001 27.1538461538462 60.2 1.92307692307692],... 'String','Спектры фаз сигналов',... 'Style','text',... 'Value',1,... 'Tag','text2',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text3'; h21 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',14,... 'FontWeight','light',... 'Position',[14.6 40.8461538461539 140.2 1.92307692307692],... 'String','Временные представления сигналов',... 'Style','text',... 'Value',1,... 'Tag','text3',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text5'; h22 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',10,... 'FontWeight','light',... 'Position',[155.4 30.4615384615385 5.4 1.38461538461538],... 'String','t, с',... 'Style','text',... 'Value',1,... 'Tag','text5',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text7'; h23 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',12,... 'FontWeight','light',... 'Position',[10.2 40.6153846153847 5.2 1.38461538461538],... 'String','^',... 'Style','text',... 'Value',1,... 'Tag','text7',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text6'; h24 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',10,... 'FontWeight','light',... 'Position',[10.2 40 5.2 1.38461538461538],... 'String','U',... 'Style','text',... 'Value',1,... 'Tag','text6',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text8'; h25 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',10,... 'FontWeight','light',... 'Position',[155.4 17 6 1.38461538461538],... 'String','f, Гц',... 'Style','text',... 'Value',1,... 'Tag','text8',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text9'; h26 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',10,... 'FontWeight','light',... 'Position',[155.6 1.61538461538462 6 1.38461538461538],... 'String','f, Гц',... 'Style','text',... 'Value',1,... 'Tag','text9',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text10'; h27 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontName','Arial',... 'FontSize',10,... 'FontWeight','light',... 'Position',[91.6 26.8461538461539 7.8 1.38461538461538],... 'String','fi, рад',... 'Style','text',... 'Value',1,... 'Tag','text10',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text12'; h28 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',10,... 'FontWeight','light',... 'Position',[92.0000000000001 11.3846153846154 5.2 1.38461538461538],... 'String','G(f)',... 'Style','text',... 'Value',1,... 'Tag','text12',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text13'; h29 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'FontUnits','inches',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'CData',[],... 'FontSize',0.194444444444444,... 'FontWeight','light',... 'Position',[7.00000000000002 27.0769230769231 63.4 1.92307692307692],... 'String','Выбор операции с фазой сигнала:',... 'Style','text',... 'Value',1,... 'Tag','text13',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'checkbox1'; h30 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'Callback',@(hObject,eventdata)gotov('checkbox1_Callback',hObject,eventdata,guidata(hObject)),... 'Enable','inactive',... 'FontSize',12,... 'Position',[5.4 24.4615384615385 33 1.76923076923077],... 'String','Зануление фазы',... 'Style','radiobutton',... 'Tag','checkbox1',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'radiobutton2'; h31 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'Callback',@(hObject,eventdata)gotov('radiobutton2_Callback',hObject,eventdata,guidata(hObject)),... 'Enable','inactive',... 'FontSize',12,... 'Position',[5.4 22.4615384615385 45.8 1.76923076923077],... 'String','Изменение фазы на',... 'Style','radiobutton',... 'Tag','radiobutton2',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'radiobutton3'; h32 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'Callback',@(hObject,eventdata)gotov('radiobutton3_Callback',hObject,eventdata,guidata(hObject)),... 'Enable','inactive',... 'FontSize',12,... 'Position',[5.4 20.3846153846154 74 1.76923076923077],... 'String','Линейно-частотное изменение с множителем',... 'Style','radiobutton',... 'Tag','radiobutton3',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'radiobutton4'; h33 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.894117647058824 0.941176470588235 0.901960784313726],... 'Callback',@(hObject,eventdata)gotov('radiobutton4_Callback',hObject,eventdata,guidata(hObject)),... 'Enable','inactive',... 'FontSize',12,... 'Position',[5.4 17.6153846153846 52.6 1.76923076923077],... 'String','Вернуться к исходному сигналу',... 'Style','radiobutton',... 'Tag','radiobutton4',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text18'; h34 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.756862745098039 0.866666666666667 0.776470588235294],... 'CData',[],... 'FontSize',14,... 'FontWeight','light',... 'Position',[5.40000000000003 9.53846153846154 36.6 1.92307692307692],... 'String','Исходный сигнал',... 'Style','text',... 'Value',1,... 'Tag','text18',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'text19'; h35 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[0.756862745098039 0.866666666666667 0.776470588235294],... 'CData',[],... 'FontSize',14,... 'FontWeight','light',... 'Position',[48.0000000000001 7.46153846153846 37 4],... 'String','Преобразованный сигнал',... 'Style','text',... 'Value',1,... 'Tag','text19',... 'UserData',[],... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'get_input_file'; h36 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback',' [fname,fpath]=uigetfile(''*.wav''); file_name=[fpath fname]; [y1,sr,nbits]=wavread(file_name); if size(y1,2)>1 y1=y1(:,global_number_of_channel); end; ',... 'FontSize',12,... 'Position',[8.00000000000001 5.07692307692308 31.8 2.23076923076923],... 'String','Открыть',... 'Tag','get_input_file',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'play'; h37 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback',@(hObject,eventdata)gotov('play_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',12,... 'Position',[8.00000000000001 2.61538461538462 32 2.23076923076923],... 'String','Воспроизвести',... 'Tag','play',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'file2'; h38 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback',@(hObject,eventdata)gotov('file2_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',12,... 'Position',[47.8 5.15384615384615 35.2 2.23076923076923],... 'String','Сохранить',... 'Tag','file2',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'group_rb'; h39 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback',@(hObject,eventdata)gotov('group_rb_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',14,... 'Position',[5.2 14.6153846153846 80.4 2.61538461538462],... 'String','Применить',... 'Tag','group_rb',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'edit_p'; h40 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[1 1 1],... 'Callback',@(hObject,eventdata)gotov('edit_p_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',12,... 'Position',[39.6 22.4615384615385 10.2 1.53846153846154],... 'String','pi',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, @(hObject,eventdata)gotov('edit_p_CreateFcn',hObject,eventdata,guidata(hObject)), appdata} ,... 'Tag','edit_p'); appdata = []; appdata.lastValidTag = 'edit_m'; h41 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'BackgroundColor',[1 1 1],... 'Callback',@(hObject,eventdata)gotov('edit_m_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',12,... 'Position',[75.4 20.3846153846154 10.2 1.53846153846154],... 'String','pi',... 'Style','edit',... 'CreateFcn', {@local_CreateFcn, @(hObject,eventdata)gotov('edit_m_CreateFcn',hObject,eventdata,guidata(hObject)), appdata} ,... 'Tag','edit_m'); appdata = []; appdata.lastValidTag = 'file2'; h42 = uicontrol(... 'Parent',h1,... 'Units','characters',... 'Callback',@(hObject,eventdata)gotov('file2_Callback',hObject,eventdata,guidata(hObject)),... 'FontSize',12,... 'Position',[48.0000000000001 2.69230769230769 35.2 2.23076923076923],... 'String','Воспроизвести',... 'Tag','file2',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'Untitled_1'; h43 = uimenu(... 'Parent',h1,... 'Callback',@(hObject,eventdata)gotov('Untitled_1_Callback',hObject,eventdata,guidata(hObject)),... 'Label','Главная',... 'Tag','Untitled_1',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'Untitled_2'; h44 = uimenu(... 'Parent',h43,... 'Callback',@(hObject,eventdata)gotov('Untitled_2_Callback',hObject,eventdata,guidata(hObject)),... 'Label','О программе',... 'Tag','Untitled_2',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'Untitled_4'; h45 = uimenu(... 'Parent',h43,... 'Callback',@(hObject,eventdata)gotov('Untitled_4_Callback',hObject,eventdata,guidata(hObject)),... 'Label','Авторы',... 'Tag','Untitled_4',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); appdata = []; appdata.lastValidTag = 'Untitled_5'; h46 = uimenu(... 'Parent',h43,... 'Accelerator','Q',... 'Callback',@(hObject,eventdata)gotov('Untitled_5_Callback',hObject,eventdata,guidata(hObject)),... 'Label','Выход',... 'Tag','Untitled_5',... 'CreateFcn', {@local_CreateFcn, blanks(0), appdata} ); % --- Set application data first then calling the CreateFcn. function local_CreateFcn(hObject, eventdata, createfcn, appdata) if ~isempty(appdata) names = fieldnames(appdata); for i=1:length(names) name = char(names(i)); setappdata(hObject, name, getfield(appdata,name)); end end if ~isempty(createfcn) if isa(createfcn,'function_handle') createfcn(hObject, eventdata); else eval(createfcn); end end |