Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matlab-GUIDE(pop-up menu

Status
Not open for further replies.

Schahan

Electrical
Joined
Apr 27, 2006
Messages
4
Location
DE
Hello.

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

x=-5:0.02:5;
y=A*sin(2*pi*x*f);
plot(x,y);

how can i get the Value for A and f from a pop-up Menu.

thanks Shahan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top