Разработка графического пользовательского интерфейса в среде MATLAB. Бадриев И.Б - 100 стр.

UptoLike

x [0, 1]
100                                       Èíòåðôåéñ â ñðåäå MATLAB

      Äàííàÿ êîìàíäà îòîáðàæàåò îêíî ñ ïîëîñîé ïðîãðåññà è çà-
äàííûì òåêñòîì íàä ïîëîñîé. Äëèíà ïîëîñû ïðîãðåññà ïðî-
ïîðöèîíàëüíà çíà÷åíèþ x, ïðè÷åì x ∈ [0, 1]. Âûõîäíîé àðãó-
ìåíò h  óêàçàòåëü íà ãðàôè÷åñêîå îêíî ñ ïîëîñîé ïðîãðåññà.
      Ñëåäóþùàÿ êîìàíäà óâåëè÷èâàåò äëèíó ïîëîñû ïðîãðåññà
ñ óêàçàòåëåì h â ñîîòâåòñòâèè ñî çíà÷åíèåì x:
      waitbar(x, h);

      Êðîìå ïåðå÷èñëåííûõ ôóíêöèé èìååòñÿ ôóíêöèÿ dialog,
ïðåäíàçíà÷åííàÿ äëÿ ñîçäàíèÿ ïóñòîãî ãðàôè÷åñêîãî îêíà.


9       Ëèñòèíã ïðîãðàììû
      function varargout = graphic(varargin)

      % GRAPHIC M-file for graphic.fig

      % GRAPHIC, by itself, creates a new GRAPHIC or raises the
      % existing singleton*.

      % H = GRAPHIC returns the handle to a new
      % GRAPHIC or the handle to the existing singleton*.

      % GRAPHIC('CALLBACK',hObject,eventData,handles,...) calls the local
      % function named CALLBACK in GRAPHIC.M with the given input arguments.

      % GRAPHIC('Property','Value',...) creates a new GRAPHIC or raises the
      % existing singleton*. Starting from the left, property value pairs are
      % applied to the GUI before graphic_OpeningFcn gets called. An unrecog-
      % nized property name or invalid value makes property application stop.
      % All inputs are passed to graphic_OpeningFcn via varargin.