ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 01.06.2020

Просмотров: 185

Скачиваний: 3

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.395 0.1 0.045],...

'String','V,м/с');

hTxt7=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.295 0.1 0.045],...

'String','a');

hTxt8=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.01 0.92 0.1 0.045],...

'String','Q(p),Н*м');

hTxt9=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.67 0.19 0.12 0.045],...

'String','p*10^5,Па');

%----------------------------------------------%

%чертим прямую%

hTxt10=uicontrol(hF,'Style','text',...

'BackgroundColor',[0.7 0.7 0.7],...

'Position',[750 5 1 900]);

%----------------------------------------------%

hAxes=axes('Units', 'normalized',...

'Position', [0.06 0.2 0.6 0.67]);

grid on

function xxxaa

global hFig1

global hAxes

global hEd1

global hEd2

global hEd3

global hEd4

global hEd5

global hTxt1

global hTxt2

global hTxt3

global hTxt4

global hTxt5

% Окно приложения допускает пропорциональное изменение размеров

% Элементы интерфейса заданны в нормализованных единицах измерения

% создание графического окна

hF = figure('Name', 'статическая характеристика', 'NumberTitle','off',...

'Units', 'characters');

set(hF, 'Position', [10 10 100 30]);

%Область ввода текста%

hEd1=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.85 0.1 0.045],...

'HorizontalAlignment','left');

hEd2=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.75 0.1 0.045],...

'HorizontalAlignment','left');

hEd3=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.65 0.1 0.045],...

'HorizontalAlignment','left');

%---------------------------------------------%

%Кнопки%

hBut1=uicontrol(hF,'style','pushbutton',...

'Units', ' normalized',...

'Position',[0.2 0.1 0.2 0.05],...

'String','Clear',...

'Callback','MyCLEAR');

hBut2=uicontrol(hF,'style','pushbutton',...

'Units', ' normalized',...

'Position',[0.4 0.1 0.2 0.05],...

'String','Start',...

'Callback','MyGOaa');

%----------------------------------------------%

%Статический текст подпись%

hTxt1=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.895 0.1 0.045],...

'String','K1');

hTxt2=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.795 0.1 0.045],...

'String','K2');

hTxt3=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.695 0.1 0.045],...

'String','K3');

hTxt4=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.0001 0.88 0.8 0.2],...

'String','');

hTxt5=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.33 0.9 0.12 0.045],...

'String','f(x,y)');

%----------------------------------------------%

%чертим прямую%

hTxt8=uicontrol(hF,'Style','text',...

'BackgroundColor',[0.7 0.7 0.7],...

'Position',[750 5 1 900]);

%----------------------------------------------%

hAxes=axes('Units', 'normalized',...

'Position', [0.06 0.2 0.6 0.67]);

grid on

function xxxaaa

global hFig1

global hAxes

global hEd1

global hEd2

global hEd3

global hEd4

global hEd5

global hEd6

global hEd7

global hList

global hTxt1

global hTxt2

global hTxt3

global hTxt4

global hTxt5

global hTxt6

global hTxt7

global hTxt8

global hTxt9

global hTxt10

% Окно приложения допускает пропорциональное изменение размеров

% Элементы интерфейса заданны в нормализованных единицах измерения

% создание графического окна

hF = figure('Name', 'статическая характеристика', 'NumberTitle','off',...

'Units', 'characters');

set(hF, 'Position', [10 10 100 30]);

%Область ввода текста%

hEd1=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.85 0.1 0.045],...

'HorizontalAlignment','left');

hEd2=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.75 0.1 0.045],...


'HorizontalAlignment','left');

hEd3=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.65 0.1 0.045],...

'HorizontalAlignment','left');

hEd4=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.55 0.1 0.045],...

'HorizontalAlignment','left');

hEd5=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.45 0.1 0.045],...

'HorizontalAlignment','left');

hEd6=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.35 0.1 0.045],...

'HorizontalAlignment','left');

hEd7=uicontrol(hF,'style','edit',...

'BackgroundColor',[1 1 1],...

'Units', ' normalized',...

'Position',[0.8 0.25 0.1 0.05],...

'HorizontalAlignment','left');

%---------------------------------------------%

%Кнопки%

hBut1=uicontrol(hF,'style','pushbutton',...

'Units', ' normalized',...

'Position',[0.2 0.06 0.2 0.05],...

'String','Clear',...

'Callback','MyCLEAR');

hBut2=uicontrol(hF,'style','pushbutton',...

'Units', ' normalized',...

'Position',[0.4 0.06 0.2 0.05],...

'String','Start',...

'Callback','qqq');

%----------------------------------------------%

%Статический текст подпись%

hTxt1=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.895 0.1 0.045],...

'String','x,м');

hTxt2=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.795 0.1 0.045],...

'String','y,м/с');

hTxt3=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.695 0.1 0.045],...

'String','z,м');

hTxt4=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.595 0.1 0.045],...

'String','h,м');

hTxt5=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.495 0.1 0.045],...

'String','Rв,м');

hTxt6=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.395 0.1 0.045],...

'String','V,м/с');

hTxt7=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.8 0.295 0.1 0.045],...

'String','a');

hTxt8=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.0001 0.88 0.8 0.2],...

'String','');

hTxt9=uicontrol(hF,'Style','text',...

'Units', ' normalized',...

'BackgroundColor',[0.8 0.8 0.8],...

'Position',[0.33 0.9 0.12 0.045],...

'String','f(x,y)');

%----------------------------------------------%

%чертим прямую%

hTxt10=uicontrol(hF,'Style','text',...

'BackgroundColor',[0.7 0.7 0.7],...

'Position',[750 5 1 900]);

%----------------------------------------------%

hAxes=axes('Units', 'normalized',...

'Position', [0.06 0.2 0.6 0.67]);

grid on



63

Изм

Лист

Дата

Лист



документа

Подпись

УИТС.161ХХХ.098 ПЗ