Code covered by the BSD License  

Highlights from
Optical Communications Systems (SOFTDM Ver 1.5) Update Matlab 2010a

image thumbnail

Optical Communications Systems (SOFTDM Ver 1.5) Update Matlab 2010a

by

 

10 Jun 2006 (Updated )

Toolbox/blockset about optical comunication system Sonet/SDH mapping over fiber optics

Acerca_SoftTDM.m
function varargout = Acerca_SoftTDM(varargin)
% ACERCA_SOFTTDM M-file for Acerca_SoftTDM.fig
%      ACERCA_SOFTTDM, by itself, creates a new ACERCA_SOFTTDM or raises the existing
%      singleton*.
%
%      H = ACERCA_SOFTTDM returns the handle to a new ACERCA_SOFTTDM or the handle to
%      the existing singleton*.
%
%      ACERCA_SOFTTDM('Property','Value',...) creates a new ACERCA_SOFTTDM using the
%      given property value pairs. Unrecognized properties are passed via
%      varargin to Acerca_SoftTDM_OpeningFcn.  This calling syntax produces a
%      warning when there is an existing singleton*.
%
%      ACERCA_SOFTTDM('CALLBACK') and ACERCA_SOFTTDM('CALLBACK',hObject,...) call the
%      local function named CALLBACK in ACERCA_SOFTTDM.M with the given input
%      arguments.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Acerca_SoftTDM

% Last Modified by GUIDE v2.5 04-Aug-2003 02:50:57

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Acerca_SoftTDM_OpeningFcn, ...
                   'gui_OutputFcn',  @Acerca_SoftTDM_OutputFcn, ...
                   'gui_LayoutFcn',  [], ...
                   'gui_Callback',   []);
if nargin & isstr(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Acerca_SoftTDM is made visible.
function Acerca_SoftTDM_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   unrecognized PropertyName/PropertyValue pairs from the
%            command line (see VARARGIN)

set(hObject, 'Units', 'pixels');
fibra= imread('fibra3.jpg','jpg'); % Lee la imagen fibra.jpg
info = imfinfo('fibra3.jpg','jpg'); % Determina el tamao de la imagen
position = get(hObject, 'Position');
axes(handles.axes3);
image(fibra);
set(handles.axes3, ...
    'Visible', 'off', ...
    'Units', 'pixels', ...
     'Position', [360 117 info.Width-10 info.Height-10]);
axis off

% Choose default command line output for Acerca_SoftTDM
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Acerca_SoftTDM wait for user response (see UIRESUME)
% uiwait(handles.figure1);

x=imread('boton050.jpg','jpg');
set(handles.pushbutton1,'CData',x);

% --- Outputs from this function are returned to the command line.
function varargout = Acerca_SoftTDM_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

close(gcf);

Contact us