QuantiX



%**********Requiere edición, donde dice 'randh', poner el nombre de usuario y luego correr.
%versión 1.0.0
%Las bases de datos no están incluidas.
function varargout = quantix(varargin)
% QUANTIX MATLAB code for quantix.fig
%      QUANTIX, by itself, creates a new QUANTIX or raises the existing
%      singleton*.
%
%      H = QUANTIX returns the handle to a new QUANTIX or the handle to
%      the existing singleton*.
%
%      QUANTIX('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in QUANTIX.M with the given input arguments.
%
%      QUANTIX('Property','Value',...) creates a new QUANTIX or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before quantix_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to quantix_OpeningFcn via varargin.
%
%      *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 quantix

% Last Modified by GUIDE v2.5 07-Apr-2018 12:51:50

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @quantix_OpeningFcn, ...
                   'gui_OutputFcn',  @quantix_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(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 quantix is made visible.
function quantix_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   command line arguments to quantix (see VARARGIN)
cd C:\Users\randh\Desktop\QuantiX;
axes(handles.fondo)
imshow('back.jpg');
axis off
axes(handles.ppal)
imshow('gto.jpg');
axis off
axes(handles.sal2)
imshow('fp.jpg');
axis off
axes(handles.sal3)
imshow('fp.jpg');
axis off
axes(handles.sal4)
imshow('fp.jpg');
axis off

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

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = quantix_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;



function entrada_Callback(hObject, eventdata, handles)
% hObject    handle to entrada (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of entrada as text
%        str2double(get(hObject,'String')) returns contents of entrada as a double


% --- Executes during object creation, after setting all properties.
function entrada_CreateFcn(hObject, eventdata, handles)
% hObject    handle to entrada (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on button press in accion.
function accion_Callback(hObject, eventdata, handles)
% hObject    handle to accion (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
s=get(handles.entrada,'string');
[f2,f1,f]=xlsread('determinantes.xlsx',s);
set(handles.determinante,'data',f);
f=cell2sym(f);
f=det(f);
ff=char(f);
set(handles.eqn,'string',ff);
syms x;
r=solve(f,x);
r=double(r);
set(handles.energia,'data',r);
axes(handles.sal2);
fplot(f);
axes(handles.ppal)
imshow(['C:\Users\randh\Desktop\QuantiX\ir\',s,'.png']);
axis off
axes(handles.sal3)
imshow(['C:\Users\randh\Desktop\QuantiX\rmn\',s,'.png']);
axis off
axes(handles.sal4)
imshow(['C:\Users\randh\Desktop\QuantiX\ir\',s,'.png']);
axis off

% --- Executes on button press in m1.
function m1_Callback(hObject, eventdata, handles)
% hObject    handle to m1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
s=get(handles.entrada,'string');
[f2,f1,f]=xlsread('determinantes.xlsx',s);
set(handles.determinante,'data',f);
f=cell2sym(f);
f=det(f);
syms x;
u=solve(f,x);
u=double(u);
axes(handles.ppal);
fplot(f);

% --- Executes on button press in m3.
function m3_Callback(hObject, eventdata, handles)
% hObject    handle to m3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
s=get(handles.entrada,'string');
axes(handles.ppal)
imshow(['C:\Users\randh\Desktop\QuantiX\ir\',s,'.png']);
axis off


% --- Executes on button press in m2.
function m2_Callback(hObject, eventdata, handles)
% hObject    handle to m2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
s=get(handles.entrada,'string');
axes(handles.ppal)
imshow(['C:\Users\randh\Desktop\QuantiX\rmn\',s,'.png']);
axis off


% --- Executes on button press in google.
function google_Callback(hObject, eventdata, handles)
% hObject    handle to google (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
s=get(handles.entrada,'string');
web(['https://www.google.com.do/search?source=hp&ei=O-rIWqSTO8Hb5gL1yar4Cg&q=',s,'&oq=',s,'&gs_l=psy-ab.3...8312.9727.0.10575.5.4.0.0.0.0.150.502.0j4.4.0....0...1c.1.64.psy-ab..1.3.383.0..0j35i39k1j0i131k1j0i131i67k1j0i67k1j0i10k1.0.fhhajo7ZCic'],'-browser');


% --- Executes on button press in nist.
function nist_Callback(hObject, eventdata, handles)
% hObject    handle to nist (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web https://webbook.nist.gov/chemistry/str-app/ -browser;


% --- Executes on button press in sdbs.
function sdbs_Callback(hObject, eventdata, handles)
% hObject    handle to sdbs (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web http://sdbs.db.aist.go.jp/sdbs/cgi-bin/cre_index.cgi -browser

% --- Executes on button press in branx.
function branx_Callback(hObject, eventdata, handles)
% hObject    handle to branx (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web https://branx-universe.blogspot.com -browser

Comentarios