Zona HTML Zona Java Zona PHP Zona ASP Zona Bases de datos
Inicio > Foros > MatLab > GUI en Matlab
-Foros de debate

MatLab
Lista de foros | Lista de mensajes de este foro

Privacidad: Recuerde que la información escrita en los foros de programación es 100% pública y que su ip será registrada asociada a su mensaje. Si encuentra un mensaje fuera de lugar, por favor, notifiquelo para su revisión y eliminación.

GUI en Matlab
Enviado por Isabel el día 7 de octubre de 2005

¿Sabe alguien como hacer con GUI de Matlab, una libreria tipo Simulink? ¿Es posible?

Otra pregunta, ¿que tipo de elemento añades a la gui que te permita que vaya apareciendo texto de forma dinámica en un recuadro? Lo más parecido es listbox ¿se os ocurre algo mejor?

Cualquier manual sobre gui en matlab de como puedo encontrarlo estaris muy agradecida.

MUCHAS GRACIAS a priori.

 
Re: GUI en Matlab
Enviado por tsk_juand el día 9 de octubre de 2005

Bueno. No tenia ni idea de que era una GUI hasta que he visto este post.
A ver si esto te ayuda
http://physics.gac.edu/~huber/envision/matgui/matg...
Hay un manual de la escuela Superior de Ingenieros Industriales de la universidad de navarra en el que habla de las interfaces gráficas. Te lo envio por correo si no lo tienes.

Si explicas algo mas lo que pretendes hacer....podemos intentar echar una mano

 
Re: Re: GUI en Matlab
Enviado por Narvex el día 4 de noviembre de 2005

Si puedes mandarme el manual please, te lo agradeceria, ya que estoy trabajando con las gui y no hay mucha info en la red al respecto.
Gracias.

 

Re: Re: GUI en Matlab
Enviado por jose adan barboza torrealba el día 14 de abril de 2008

for u=1:(A+B)

GUARDAVERTICALDFij=GUARDAVERTICAL;
GUARDAVERTICAL;
jj=0;
for i=1:(A+B)
if jj==0
if GUARDAVERTICALDFij(:,i)==[0]
GUARDAVERTICALDFij(:,i)=[];
GUARDAVERTICALDFij(:,A+B)=[0];
GUARDAVERTICAL=GUARDAVERTICALDFij;
jj=1;


end
end
end

end
clear u DFij i jj
kasao=0;

for u=1:(A+B)

GUARDAVERTICALDFij=GUARDAVERTICAL;
GUARDAVERTICAL;
jj=0;
for i=1:(A+B)
if jj==0
if GUARDAVERTICALDFij(i,:)==[0]


GUARDAVERTICALDFij(i,:)=[];
GUARDAVERTICALDFij(A+B,:)=[0];
GUARDAVERTICAL=GUARDAVERTICALDFij;
jj=1;

end
end
end

end
clear u DFij i jj
kasao=0;

for i=1:(A+B)
if kasao==0
if GUARDAVERTICAL(:,i)==0
kasao=i;
end
end
end
kasao;
Bij;
%for i=kasao:(A+B)
%GUARDAVERTICAL(kasao:(A+B),:)=[];
GUARDAVERTICAL(:,kasao:(A+B))=[];
GUARDAVERTICAL;
kasao=0;
for i=1:(A+B)
if kasao==0
if GUARDAVERTICAL(i,:)==0
kasao=i;
end
end
end
kasao;
Bij;
%for i=kasao:(A+B)
if kasao>0
%GUARDAVERTICAL(kasao:(A+B),:)=[];
GUARDAVERTICAL(kasao:(A+B),:)=[];
end
GUARDAVERTICAL;

 

Re: Re: GUI en Matlab
Enviado por jose adan barboza torrealba el día 14 de abril de 2008

mirate este programa

prompt={'ACOPLAR:',...
'CON:'};
name='ACOPLAR';
numlines=1;
defaultanswer={'' ''};
options.Resize='on';
options.WindowStyle='normal';
options.Interpreter='tex';
ACOPLADOS1=inputdlg(prompt,name,numlines,defaultanswer,options);
ACOPLADOS=(cell2mat(ACOPLADOS1));
clear prompt name options numlines defaultanswer ACOPLADOS1
CHEQUEO=char(ACOPLADOS);
for i=97:122
if CHEQUEO(1)==char(i)
adan=i-96;
char(i);

end
if CHEQUEO(2)==char(i)
jose=i-96;
char(i);
end
end
if A==0
adan;
else
if adan>A
adan=adan-A;
else
adan=B+adan
end
end

if A==0
jose;
else
if jose>A
jose=jose-A;
else
jose=B+jose
end
end
%Yij=(Bij(adan,adan)+Bij(jose,jose)+Bij(adan,jose)+Bij(jose,adan));
Bij(adan,:)=Bij(adan,:)+Bij(jose,:);
Bij(:,adan)=Bij(:,adan)+Bij(:,jose);
Bij;
Bij(jose,:)=[0];
Bij(:,jose)=[0];
%Bij(adan,adan)=Yij;
Bij;
clear Yij adan jose i

 
Re: Re: Re: GUI en Matlab
Enviado por jose adan barboza torrealba el día 14 de abril de 2008

magnitud=size(BINDUCCION);
if mod(magnitud(1),3)==0
%disp('se ha logrado')
for i=1:(magnitud(1)/3)
uuu=3*i;
aaa=1+(i-1)*3;
Bfinal=BINDUCCION(aaa:uuu,aaa:uuu)-GUARDAVERTICAL(aaa:uuu,:)*GUARDAPURA^(-1)*GUARDAVERTICAL(aaa:uuu,:)'
diagonal=(sum(diag(Bfinal)))/3;
sumamasuna=(Bfinal(1,2)+Bfinal(1,3)+Bfinal(3,2))/3;
B_o=diagonal+2*sumamasuna;
B_1=diagonal-sumamasuna;
B_2=diagonal-sumamasuna;
checkLabels = {'Bo DE SECUENCIA "0"='...
'B1 DE SECUENCIA "+"=:'...
'B2 DE SECUENCIA "-"='};

varNames = {'Bo','B1','B2'};
items = {(B_o),(B_1),(B_2)};
export2wsdlg(checkLabels,varNames,items,...
'CONFIRMACION');

pause
end

else
clc;
close
disp('ERROR EL SISTEMA DEBE SER TRIFASICO')
end
clear GUASDAHORIZONTAL aaa ans checkLabels diagonal BINDUCCIONDFij dimension dimension2 B_1 dimension2 B_2 i B_o items Bfinal kasao uuu varNames GUARDAVERTICALDFij GUARDAhorizontal magnitud sumamasuna;
clear A B GUARDAPURA GUARDAVERTICAL BINDUCCION Bij
clc

 


Re: Re: GUI en Matlab
Enviado por pwe el día 22 de abril de 2006

Hola:

Serias tan amable de mandarme el manual de la escuela de Navarra; es que lo he buscao pero no doy con el. Te lo agradeceria muchisimo,mi direccion de correo es pablo_ve@hotmail.com

 
Mandamel si lo necesito
Enviado por Renan el día 10 de noviembre de 2007

Lo necesito para realizar una tarea mi correo es sis_98@webmail.cs.umss.edu.bo o mortal351@hotmail.com pero mejor si me lo mandas al primero

 



Re: GUI en Matlab
Enviado por andres el día 11 de octubre de 2005

hola isabel...yo tambien tengo muchas dudas sobre este tema puesto que tengo un proyecto en el cual manejo una simulacion con simulink y la interfaz la tengo que manejar con guide, lo unico que se esque se tiene que usar el comando sim si depronto tienes alguna informacion favor divulgarla...gracias

 
Re: Re: GUI en Matlab
Enviado por aninsa el día 10 de enero de 2006

Hola a todos!tengo una direccion en la que aparece un manual de guide del matlab7.0 bastante completo, pero viene en ingles.Alguien sabria donde conseguirlo en español, o una buena traduccion.
La direccion es Mathworks.com/access/helpdesk/help/techdoc/creating_guis/creating_guis.html

 


Re: GUI en Matlab
Enviado por oberon el día 3 de noviembre de 2005

utiliza el comando guide si tu matlab es suerior al 4, esto te ayuda a crear la GUI, pero las funciones las debes llamar con el atributo callback de los botones que creas, nota esta libreria solo te sirve para crear, si moificas despues manualmente y vueleves a usar GUIDE, los cambios se pierden

 
Re: Re: GUI en Matlab
Enviado por alexander el día 18 de diciembre de 2005

Hola :
si es posible podrian enviarme ese manual sobre GUI a raanglada@yahoo.es o raanglada@estudiantes.uci.cu

gracias

 
Re: Re: Re: GUI en Matlab
Enviado por starsky200 el día 8 de enero de 2006

Hola, no se si aqui es donde debo preguntar, pero es que estoy haciendo una aplicacion GUI con MATLAB. CUando presiono un boton de mi aplicacion, se ejecutan una serie de comandos y quiero que dos vectores que he creado pasen a otro boton cuando le presione. Es decir: Tengo un boton llamado: aleatorios, en el que creo:

las_x=[];
las_y=[];

y quiero pasar estos vectores de manera que al presionar sobre otro boton que tengo llamado: MarchadeJarvis, disponga de la informacion contenida en ellos para trabajar con ella.

Como lo puedo hacer??
MUCHAS GRACIAS!!

 



Re: GUI en Matlab
Enviado por huntach el día 25 de enero de 2006

Oye tsk_juand , queria pedirte el favor si me puedes enviarme el manual a mi tambien , al siguiente correo huntach@gmail.com.

Te lo agradeceria enormemente , es para darle utilidad en mi Tesis de la Universidad.

 
Re: Re: GUI en Matlab
Enviado por raul marcano el día 14 de febrero de 2006

queria pedirte el favor si me puedes enviarme el manual a mi tambien , al siguiente correo: raullmarcano@yahoo.es

Te lo agradeceria enormemente , es para darle utilidad en mi Tesis de la Universidad.

 
Re: Re: Re: GUI en Matlab
Enviado por raul marcano el día 14 de febrero de 2006

necesito con urgencia el manual de matlab-simulink traducido al español con urgencia, por favor

 
Re: Re: Re: Re: GUI en Matlab
Enviado por raul marcano el día 14 de febrero de 2006

necesito con urgencia el manual de matlab-simulink traducido al español con urgencia, por favor. mi correo es: raullmarcano@yahoo.es

 




Re: GUI en Matlab
Enviado por jose adan barboza torrealba el día 14 de abril de 2008

function varargout = TRANSMISIONES(varargin)
% TRANSMISIONES M-file for TRANSMISIONES.fig
% TRANSMISIONES, by itself, creates a new TRANSMISIONES or raises the existing
% singleton*.
%
% H = TRANSMISIONES returns the handle to a new TRANSMISIONES or the handle to
% the existing singleton*.
%
% TRANSMISIONES(\'CALLBACK\',hObject,eventData,handles,...) calls the local
% function named CALLBACK in TRANSMISIONES.M with the given input arguments.
%
% TRANSMISIONES(\'Property\',\'Value\',...) creates a new TRANSMISIONES or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before TRANSMISIONES_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to TRANSMISIONES_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


format long
Kk=2.54;

% Last Modified by GUIDE v2.5 11-Apr-2008 22:23:30
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(\'gui_Name\', mfilename, ...
\'gui_Singleton\', gui_Singleton, ...
\'gui_OpeningFcn\', @TRANSMISIONES_OpeningFcn, ...
\'gui_OutputFcn\', @TRANSMISIONES_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 TRANSMISIONES is made visible.
function TRANSMISIONES_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 TRANSMISIONES (see VARARGIN)

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

% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = TRANSMISIONES_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 edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (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 edit1 as text
% str2double(get(hObject,\'String\')) returns contents of edit1 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit1=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (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



function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (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 edit2 as text
% str2double(get(hObject,\'String\')) returns contents of edit2 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit2=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (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



function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (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 edit3 as text
% str2double(get(hObject,\'String\')) returns contents of edit3 as a double

NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit3=NewVal;
guidata(hObject,handles);
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (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



function edit4_Callback(hObject, eventdata, handles)
% hObject handle to edit4 (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 edit4 as text
% str2double(get(hObject,\'String\')) returns contents of edit4 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit4=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (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



function edit5_Callback(hObject, eventdata, handles)
% hObject handle to edit5 (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 edit5 as text
% str2double(get(hObject,\'String\')) returns contents of edit5 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit5=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit5 (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 selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,\'String\') returns popupmenu1 contents as cell array
% contents{get(hObject,\'Value\')} returns selected item from popupmenu1
rG=[0;0;0.609;0.642;0.680;0.684;0.721;0.741;0.743;0.783;0.814;0.846;0.858;0.883;0.879;0.914;0.927;0.977;0.990;1.108;1.063;1.165;1.196;1.213;1.259;1.293;1.345;1.382;1.427;1.465;1.502;1.545;1.762;0];
rg=rG(get(hObject,\'value\'));
set(handles.edit6,\'string\',rg/2)
if get(hObject,\'value\')==1
set(handles.edit6,\'string\',\'RADIO?????\')
elseif get(hObject,\'value\')==2
set(handles.edit6,\'string\',\'RADIO?????\')
elseif get(hObject,\'value\')==34
set(handles.edit6,\'string\',\' \')
end
% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: popupmenu 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



function edit6_Callback(hObject, eventdata, handles)
% hObject handle to edit6 (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 edit6 as text
% str2double(get(hObject,\'String\')) returns contents of edit6 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit6=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (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 selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,\'String\') returns popupmenu2 contents as cell array
% contents{get(hObject,\'Value\')} returns selected item from popupmenu2
rF=[0;0;0.609;0.642;0.680;0.684;0.721;0.741;0.743;0.783;0.814;0.846;0.858;0.883;0.879;0.914;0.927;0.977;0.990;1.108;1.063;1.165;1.196;1.213;1.259;1.293;1.345;1.382;1.427;1.465;1.502;1.545;1.762;0];
rf=rF(get(hObject,\'value\'));
set(handles.edit7,\'string\',rf/2)
if get(hObject,\'value\')==1
set(handles.edit7,\'string\',\'RADIO?????\')
elseif get(hObject,\'value\')==2
set(handles.edit7,\'string\',\'RADIO?????\')
elseif get(hObject,\'value\')==34
set(handles.edit7,\'string\',\' \')
end

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

% Hint: popupmenu 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



function edit7_Callback(hObject, eventdata, handles)
% hObject handle to edit7 (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 edit7 as text
% str2double(get(hObject,\'String\')) returns contents of edit7 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit7=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (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 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)
A=handles.edit1;
B=handles.edit2;
C=handles.edit3;
D=handles.edit4;
E=handles.edit5;
F=handles.edit9;
G=handles.edit8;
% --- Executes on button press in pushbutton2.
close
%haora viene lo bueno
letra=char(\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'i\',\'j\',\'k\',\'l\',\'m\',\'n\',\'o\',\'p\',\'q\',\'r\',\'s\',\'t\',\'u\',\'v\',\'w\',\'x\',\'y\',\'z\',\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\',\'S\',\'T\',\'U\',\'V\',\'W\',\'X\',\'Y\',\'Z\');
for u=1:A
title(\'CONFIGURACION GEOMETRICA DE LOS CABLES DE GUARDA LINEA DE TRANSMISION\');
xlabel(\'DISTANCIA HORIZONTAL\');
ylabel(\'DISTANCIA VERTICAL\');
axis([0 E D C]);
grid minor;
[x,y]=ginput(1);
x;
y;
xz=x+E/100;
xp=x-E/100;
yz=y+C/100;
yp=y-C/100;
color=[1/(2*u^2) u/(A) 1/(u^1.5)];
axis([xp xz yp yz]);
grid on;
[x,y]=ginput(1);
x;
y;
plot(x,y,\'Color\',color,\'Marker\',\'.\',\'MarkerSize\',24);
text(x,y,{ \'\',\'\',letra(u)})
p(u)=x;
h(u)=y;
hold on;
grid off;

end

for u=1:B
title(\'CONFIGURACION GEOMETRICA DE LOS CABLES DE FASE LINEA DE TRANSMISION\');
xlabel(\'DISTANCIA HORIZONTAL\');
ylabel(\'DISTANCIA VERTICAL\');
axis([0 E D C]);
grid minor;
[x,y]=ginput(1);
x;
y;
xz=x+E/100;
xp=x-E/100;
yz=y+C/100;
yp=y-C/100;
color1=[u/(B) 1/(u^1.5) 1/(2*u^2)];
axis([xp xz yp yz]);
grid on;
[x,y]=ginput(1);
x;
y;
plot(x,y,\'Color\',color1,\'Marker\',\'.\',\'MarkerSize\',24);
text(x,y,{ \'\',\'\',letra(u+A)})
k(u)=x;
t(u)=y;
hold on;
grid off;

end
legend(\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'i\',\'j\',\'k\',\'l\',\'m\',\'n\',\'o\',\'p\',\'q\',\'r\',\'s\',\'t\',\'u\',\'v\',\'w\',\'x\',\'y\',\'z\',\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\',\'L\',\'M\',\'N\',\'O\',\'P\',\'Q\',\'R\',\'S\',\'T\',\'U\',\'V\',\'W\',\'X\',\'Y\',\'Z\')
title(\'CONFIGURACION GEOMETRICA DE LA LINEA DE TRANSMISION\');
axis([0 E D C]);
grid minor;
grid off
%dfisdugfhfghaquin borro
rg=F
rf=G
% Define the context menu
cmenu = uicontextmenu;
cmenu1 = uicontextmenu;
% Define the line and associate it with the context menu
for i=1:(A)
hline1 = plot(p(i),h(i), \'UIContextMenu\', cmenu1);
end
% Define callbacks for context menu items
cb1 = [\'set(hline1)\',\'value\', letra(i)];
% Define the context menu items
item1 = uimenu(cmenu1, \'Label\',\'ACOPLAR CABLES DE GUARDA:\');
id_EDITAR=uimenu(item1,\'Label\',\'ACOPLAR\',\'CallBack\',\'ACOPLAMIENTO\');

for i=1:(B)
hline = plot(k(i),t(i), \'UIContextMenu\', cmenu);
end
% Define callbacks for context menu items
cb1 = [\'set(hline)\'];
% Define the context menu items
item2 = uimenu(cmenu, \'Label\',\'ACOPLAR CABLES DE FASE:\');
id_EDITAR1=uimenu(item2,\'Label\',\'ACOPLAR\',\'CallBack\',\'ACOPLAMIENTO\');

%fgjhgfjhfgaqui booo
clc
g=ones(A,2);
for i=1:A
for j=1:2
if j==1
g(i,j)=p(i);
else
g(i,j)=h(i);
end
end
end
g

f=ones(B,2);
for i=1:B
for j=1:2
if j==1
f(i,j)=k(i);
else
f(i,j)=t(i);
end
end
end
f
%function demo
% Customize datatip string to display \'Amplitude\' and
format rat
% \'Time\'.
Bij=zeros(A+B,A+B);
for i=1:(B)
for j=1:B
if i==j
Bij(i,j)=log((2*t(i))/rf);
else
Bij(i,j)=log((distance(k(i),t(i),k(j),-t(j))/distance(k(i),t(i),k(j),t(j))));
end
end
end
for i=1:(A)
for j=1:(A)
if i==j
Bij((i+B),(j+B))=log((2*h(i))/rg);
else
Bij((i+B),(j+B))=log(distance(p(i),h(i),p(j),-h(j))/distance(p(i),h(i),p(j),h(j)));
end
end
end
for i=1:(B)
for j=1:(A)

Bij((i),(j+B))=log(distance(k(i),t(i),p(j),-h(j))/distance(k(i),t(i),p(j),h(j)));

end
end

for i=1:(A)
for j=1:(B)

Bij((i+B),(j))=log(distance(p(i),h(i),k(j),-t(j))/distance(p(i),h(i),k(j),t(j)));

end
end


Bij


%pause

%dh
checkLabels = {\'MATRIZ DE INDUCCION Bij:\'...
\'Nº DE C. DE GUARDA:\'...
\'Nº DE C. DE FASE:\'};

varNames = {\'Bij\',\'A\',\'B\'};
items = {(Bij),(A),(B)};
export2wsdlg(checkLabels,varNames,items,...
\'CONFIRMACION\');
clc;Bij
%jtrsrt
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clf
close TRANSMISIONES


% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear Kk;
Kk=2.54;
% Hint: get(hObject,\'Value\') returns toggle state of radiobutton1
set(handles.text6,\'string\',\'[cm]\')
set(handles.text7,\'string\',\'[cm]\')
set(handles.text8,\'string\',\'[cm]\')

% --- Executes on button press in radiobutton2.
set(handles.edit9,\'string\',handles.edit6*Kk)
set(handles.edit8,\'string\',handles.edit7*Kk)
set(handles.text14,\'string\',\'[cm]\')
set(handles.text13,\'string\',\'[cm]\')
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear Kk;
Kk=0.0254;

% Hint: get(hObject,\'Value\') returns toggle state of radiobutton2
set(handles.text6,\'string\',\'[m]\')
set(handles.text7,\'string\',\'[m]\')
set(handles.text8,\'string\',\'[m]\')

% --- Executes on button press in radiobutton3.
set(handles.edit9,\'string\',handles.edit6*Kk)
set(handles.edit8,\'string\',handles.edit7*Kk)
set(handles.text14,\'string\',\'[m]\')
set(handles.text13,\'string\',\'[m]\')
function radiobutton3_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear Kk;
Kk=1;
% Hint: get(hObject,\'Value\') returns toggle state of radiobutton3
set(handles.text6,\'string\',\'[in]\')
set(handles.text7,\'string\',\'[in]\')
set(handles.text8,\'string\',\'[in]\')
% --- Executes on button press in radiobutton4.
set(handles.edit9,\'string\',handles.edit6*Kk)
set(handles.edit8,\'string\',handles.edit7*Kk)
set(handles.text14,\'string\',\'[in]\')
set(handles.text13,\'string\',\'[in]\')
function radiobutton4_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
clear Kk;
Kk=1/12;
% handles structure with handles and user data (see GUIDATA)
set(handles.text6,\'string\',\'[ft]\')
set(handles.text7,\'string\',\'[ft]\')
set(handles.text8,\'string\',\'[ft]\')
% Hint: get(hObject,\'Value\') returns toggle state of radiobutton4
set(handles.edit9,\'string\',handles.edit6*Kk)
set(handles.edit8,\'string\',handles.edit7*Kk)
set(handles.text14,\'string\',\'[ft]\')
set(handles.text13,\'string\',\'[ft]\')



function edit8_Callback(hObject, eventdata, handles)
% hObject handle to edit8 (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 edit8 as text
% str2double(get(hObject,\'String\')) returns contents of edit8 as a double
NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit8=NewVal;
guidata(hObject,handles);

% --- Executes during object creation, after setting all properties.
function edit8_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit8 (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



function edit9_Callback(hObject, eventdata, handles)
% hObject handle to edit9 (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 edit9 as text
% str2double(get(hObject,\'String\')) returns contents of edit9 as a double

NewStrVal=get(hObject,\'String\');
NewVal=str2double(NewStrVal);
handles.edit9=NewVal;
guidata(hObject,handles);
% --- Executes during object creation, after setting all properties.
function edit9_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit9 (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


 

Re: GUI en Matlab
Enviado por Miguel Ángel el día 25 de abril de 2006

Yo tengo los manuales en castellano de la Universidad de Navarra, si alguno lo quereis mandadme un email y os lo mando. Si teneis alguna duda de como crear alguna cosilla con las guides decidmelo e intentaré echaros una mano.

 
Re: Re: GUI en Matlab
Enviado por davs_9 el día 4 de marzo de 2008

Hola Miguel Angel, por favor enviame los manuales que tengas de GUI en español, ya que estoy realizando un GUI relacionado con simulink y tengo problemas para colacar el tiempo de simulacion y variar el set point desde el GUI. mis correos son davidale_ @yahoo.com y davs_9@hotmail.com.

espero tu pronta respuesta....

 

Re: Re: GUI en Matlab
Enviado por sarybel el día 9 de noviembre de 2007

Porfa enviame a mi correo el manual de matlab i correo es :sarybel8_9@hotmail.com

 

Re: Re: GUI en Matlab
Enviado por Mario Favarato el día 2 de mayo de 2006

Por favor Miguel Angel, necesito los manuales urgente.
Gracias

 

Re: Re: GUI en Matlab
Enviado por zoraida morantes el día 3 de mayo de 2006

Hola Miguel Angel puedes enviarme los manuales en castellano de como crear gui con guide lo necesito con urgencia. Saludos desde Maracaibo-Zulia-Venezuela

 

Re: Re: GUI en Matlab
Enviado por jose alejandro el día 4 de mayo de 2006

Hola miguel me podrias enviar el manual gracias de antemano
este es mi mail: jose_alejandro_00@yahoo.com

 

Re: Re: GUI en Matlab
Enviado por Ivón Oristela Benítez González el día 22 de mayo de 2006

Hola Miguel
Necesito que cuanot antes, si el tiempo te lo permite me envies los manuales de navarra en español.
Mi dirección de correo es: ivonoristelabg@yahoo.com

 

Re: Re: GUI en Matlab
Enviado por Luciano el día 24 de mayo de 2006

hola me puedes mandar el manual de simulink en castellano

gracias

 

Re: Re: GUI en Matlab
Enviado por Ana el día 28 de mayo de 2006

Hola Miguel, me podrias enviar el manual en castellano de GUI. Lo necesito para mi proyecto y entrego el viernes!!! Gracias de antemano

 

Re: Re: GUI en Matlab
Enviado por Giancarlo el día 2 de junio de 2006

Hola Miguel Angel por fa me puedes mandar el manual del simulink lo he buscado como una aguja en un pajar .... te agracesco de antemano, bye

 

Re: Re: GUI en Matlab
Enviado por marcelo el día 15 de junio de 2006

hola Miguel, parece que eres el unico que tiene algo de guide en castellano.....por favor si pudieses enviarme estos textos...me ayudaria muchisimo...de antemano...gracias.

 


Re: GUI en Matlab
Enviado por pwe el día 4 de mayo de 2006

Hola Miguel,me podrias enviar ese manual de gui de la universidad de navarra a pablojve@gmail.com.gracias.

 
GUI en Matlab
Enviado por yelisarov el día 12 de junio de 2006

Hola Miguel,me podrias enviar ese manual de gui de la universidad de navarra a yelisarov@hotmail.com
Es que estoy desarrollando unos filtros de audio y necesito una interfaz bonita. De antemano gracias

 

GUI en Matlab
Enviado por yelisarov el día 12 de junio de 2006

Hola Miguel, me podrias enviar ese manual de gui de la universidad de navarra a yelisarov@hotmail.com

Estoy desarrollando unos filtros de audio y necesito una interfaz, de antemano Gracias

 
Re: GUI en Matlab
Enviado por yelisarov el día 12 de junio de 2006

Hola Miguel,me podrias enviar ese manual de gui de la universidad de navarra a yelisarov@hotmail.com
Es que estoy desarrollando unos filtros de audio y necesito una interfaz bonita. De antemano gracias

 
Re: Re: GUI en Matlab
Enviado por lashy84 el día 19 de junio de 2006

necesito el codigo de la interpolación plinomial en mat lab por larange
me podrian dar alguna información sobre el tema

 
Re: Re: Re: GUI en Matlab
Enviado por pwe el día 30 de junio de 2006

hola! alguien me puede ayudar!es q tengo problemas con el guide. cuando lo carga matlab,no me sale la rejilla q se supone q me tiene q salir,me sale solo un fondo gris oscuro y ahi no me deja ppner ningun boton.Alguien me puede decir q es lo q le pasa??

 

Re: Re: Re: GUI en Matlab
Enviado por pwe el día 30 de junio de 2006

Hola!alguien me puede ayudar?es q tengo problemas con guide,cuando lo cargo en vez de salirme la rejilla q se supone q tiene q salir,lo q sale es un fondo gris oscuro q no me dejar poner ningun boton.alguien sabe lo q le puede pasar??

 
Re: Re: Re: Re: GUI en Matlab
Enviado por dilema333 el día 2 de noviembre de 2007

ummm la verdad nunca me a pasado eso intenta desistalandolo otra vez y quitando la carpeta de matlab que se crea en c:\ ya que a veces pasa q cuando ocurre este tipo de cosas y no se quita esta carpeta al instalarlo de nuevo hace lo mismo y no soluciona el problema

 
introducion de datos desde la intertaz de gui a simulink
Enviado por dilema333 el día 2 de noviembre de 2007

hola estoy creando una interfaz en gui pero al introducir los datos dos veces estos no se actualizan en el workspace y no se si cuando pase las variables a simulink me vaya a pasar lo mismo y tal vez podria perder el tiempo pasando estas variables a simulink sino se actualizan antes.
ya que cuando las llamo con el from workspace de simulink me pide q esten en el workspace de matlab el proceso q estoy haciendo no me sirve si los datos q introduzco desde la interfaz no se actualizan si alguien sabe una forma de como hacer esto desde el editor/debbuger q creo q se llama tambien un script por fa comuniquemelo como un codigo o algoritmo q lo pueda hacer.

 
Re: Simulink y guide
Enviado por Lety el día 31 de enero de 2008

hola que tal, tengo un problemita, estoy combinando simulink con guide, quiero mandar llamar la ventana donde se muestran las señales en simulink, pero desde guide, ya lo hago pero solo me aparece TODO el programa en simulink y solo quiero visualizar las graficas. alguien puede ayudarme, espero que ayan entendido mi problemita...

 
Re: Re: Simulink y guide
Enviado por davs_9 el día 4 de marzo de 2008

Hola Lety yo tambien estoy realizando un Gui relacionado con simulink y tengo el mismo problema y tampoco puedo colacar el tiempo de simulacion ni variar el set point dentro del GUI. si lograste resolver el problema porfa enviame la informacion mis correos son davidale_9@yahoo.com y davs_9@hotmail.com.

espero tu pronta respuesta.
att. David Villalba

 










Tienda
Patrocinados
 

Copyright © 1999-2006 Programación en castellano. Todos los derechos reservados.
Formulario de Contacto - Datos legales - Publicidad

Hospedaje web y servidores dedicados linux por Ferca Network