%    mylimit.m example of program for Matlab 6.0 
%    graphical inteface for plot any function
%    this program may run from Matlab command window or to prepare
%    standalone applications  by command from matlab command window
%    mcc -m -B sgl mylimit.m
%    Copyright (C) 2001  Valery Beloshapkin
%
%    This program is free software; you can redistribute it and/or modify
%    it under the terms of the GNU General Public License as published by
%    the Free Software Foundation; either version 2 of the License, or
%    (at your option) any later version.
%
%    This program is distributed in the hope that it will be useful,
%    but WITHOUT ANY WARRANTY; without even the implied warranty of
%    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%    GNU General Public License for more details.
%
%    You should have received a copy of the GNU General Public License
%    along with this program; if not, write to the Free Software
%    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%
%   e-mail adress of author:  bvv@tnp.krasn.ru 

function mylimit()
%#function calllim
global fun var point ans  
h1=figure;
pos=[0.1 0.7 0.1 0.05];
var=uicontrol('style','edit','units','normalized','position',pos,'string','x');
pos1=[0.1 0.77 0.1 0.05];
point=uicontrol('style','edit','units','normalized','position',pos1,'string','0');
pos2=[0.1 0.84 0.7 0.05];
ans=uicontrol('style','edit','units','normalized','position',pos2);
pos3=[0.01 0.7 0.07 0.05];
uicontrol('style','text','units','normalized','position',pos3,'string','var');
pos4=[0.01 0.77 0.07 0.05];
uicontrol('style','text','units','normalized','position',pos4,'string','point');
pos5=[0.01 0.84 0.07 0.05];
uicontrol('style','text','units','normalized','position',pos5,'string','limit');
pos6=[0.01 0.91 0.07 0.05];
uicontrol('style','pushbutton','units','normalized','position',pos6,...
'string','limit','backgroundcolor',[1 0 0],'callback','calllim');
pos7=[0.3 0.91 0.5 0.05];
fun=uicontrol('style','edit','units','normalized','position',pos7,'string',...
'sin(x)/x');
pos8=[0.2 0.91 0.08 0.05];
uicontrol('style','text','units','normalized','position',pos8,'string','f(t)=');






