Quantcast
Channel: Mein MATLAB Forum - goMatlab.de
Viewing all articles
Browse latest Browse all 28441

Parameter mit GUI einlesen und an Funktion übergeben

$
0
0
Hallo zusammen, ich bin MATLAB Anfänger und würde gerne mit einem einfachen GUI einen Parameter in ein "edit text" Feld eintragen und mit einem "push button" soll die Funktion gestartet werden, aber auch der Parameter aus dem "edit text" soll in der Funktion verwendet werden. Die Funktion kann ich bereits mit dem "push button" auslösen: Berechnung_Heizverlauf_3(P_Zyl_1,P_Zyl_2,P_Zyl_3,P_Zyl_4,V) Jetzt würde aber gerne den Parameter aus der Box übergeben. Hier der Code: function varargout = GUI_Heizverlauf(varargin) % GUI_HEIZVERLAUF MATLAB code for GUI_Heizverlauf.fig % GUI_HEIZVERLAUF, by itself, creates a new GUI_HEIZVERLAUF or raises the existing % singleton*. % % H = GUI_HEIZVERLAUF returns the handle to a new GUI_HEIZVERLAUF or the handle to % the existing singleton*. % % GUI_HEIZVERLAUF('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in GUI_HEIZVERLAUF.M with the given input arguments. % % GUI_HEIZVERLAUF('Property','Value',...) creates a new GUI_HEIZVERLAUF or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before GUI_Heizverlauf_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to GUI_Heizverlauf_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 GUI_Heizverlauf % Last Modified by GUIDE v2.5 19-Apr-2014 12:05:23 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn ...

Viewing all articles
Browse latest Browse all 28441