Hallo Martin,
das klingt nach einer schönen Aufgabe, aber wo genau hast du Probleme? Hast du Fehlermeldungen bei deinem Code? Wenn ja welche genau? Welchen Code?
_________________
mein problem sit das ich nicht weiß wie ich dem diagramm sagen soll das es die daten aus den pop-up menüs beziehen soll... gibt es hierfür eine art tutorial? oder ein bereits vorgeschriebenes programm...
des weiteren weiß ich nicht wie ich soetwas am besten aufbauen soll ob ich einen knopf einbauen soll der die auswahl der beiden messwerte erst bestätigt/ resetet...
also eigentlich alles zu dem obrigen thema...
ich habe bisher nur hinbekommen das ich die pop up menü mit den daten füllen kann... sosnt eigentlich nichts... daher ist es auch ehe unnötig hier den code zu posten da er nichts aussagt... aber kann ich auf wunsch gern machen... also wenn man mir dann besser helfen kann... ?
also schonmal danke bisher... aber nun habe ich die tutorials gelesen udn hänge imemrnoch...
ich poste hier mal meinen code und hoffe mir wird geholfen...
Code:
functionvarargout = gui(varargin) % GUI M-file for gui.fig % GUI, by itself, creates a new GUI or raises the existing % singleton*.
%
% H = GUI returns the handle to a new GUI or the handle to % the existing singleton*.
%
% GUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in GUI.M with the given input arguments.
%
% GUI('Property','Value',...) creates a new GUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before gui_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to gui_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
% Last Modified by GUIDE v2.5 10-Apr-2011 14:04:01
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @gui_OpeningFcn, ...
'gui_OutputFcn', @gui_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
ifnargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
% --- Executes just before gui is made visible. function gui_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 gui (see VARARGIN)
% Choose default command line output for gui
handles.output = hObject;
% UIWAIT makes gui wait for user response (see UIRESUME) % uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line. functionvarargout = gui_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 selection change in file. function file_Callback(hObject, eventdata, handles) % hObject handle to file (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns file contents as cell array % contents{get(hObject,'Value')} returns selected item from file
% --- Executes during object creation, after setting all properties. function file_CreateFcn(hObject, eventdata, handles) % hObject handle to file (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. ifispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popupmenu5. function popupmenu5_Callback(hObject, eventdata, handles) % hObject handle to popupmenu5 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu5 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu5
% --- Executes during object creation, after setting all properties. function popupmenu5_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu5 (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. ifispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popupmenu7. function popupmenu7_Callback(hObject, eventdata, handles) % hObject handle to popupmenu7 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu7 contents as cell array % contents{get(hObject,'Value')} returns selected item from popupmenu7
switchget(handles.popupmenu6,'String') ... ?
% Hier sollen die zu wählenenden Daten stehen die in der Datei existieren die bei dem Pop up menu 4 gewählt wurde otherwise end
% --- Executes during object creation, after setting all properties. function popupmenu7_CreateFcn(hObject, eventdata, handles) % hObject handle to popupmenu7 (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. ifispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in plotAxes1_pushbutton. function plotAxes1_pushbutton_Callback(hObject, eventdata, handles) % hObject handle to plotAxes1_pushbutton (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
%selects axes1 as the current axes, so that
%Matlab knows where to plot the data
axes(handles.axes1)
%hier soll die auswahl des X-Achsen Pop UP Menüs zugewiesen werden (popupmenu5)
x = ?;
%hier soll die auswahl des Y-Achsen Pop UP Menüs zugewiesen werden (popupmenu6)
y = ?;
%plots the x and y data
plot(x,y);
%adds a title, x-axis description, and y-axis description
title('Axes 1');
%%hier soll die auswahl des X-Achsen Pop UP Menüs zugewiesen werden (popupmenu5) xlabel('X data');
%%hier soll die auswahl des Y-Achsen Pop UP Menüs zugewiesen werden (popupmenu6) ylabel('Y data');
guidata(hObject, handles); %updates the handles
kann mir da irgendjemand helfen? wäre super wenn ich verstehen würde wie das geht. :/
Einstellungen und Berechtigungen
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.