I need help with gui
Mostrar comentarios más antiguos
Hi ... so i need to do currency exchanger with GUI .... basically my teacher say she wants to be a euro to other 5 currencies . So lets say she wants to convert 3 euro to mexiacan pesos the result will pop up in msg box ... I have started with it but something is not working. If somebody can help me i would be very happy ... This is what I've got so far ... i just need a help with one the other currencies are just a work of changing numbers.
% --- 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)
val1=get(handles.popupmenu1,'Value');
if val1==1
val1=0.0508
m=str2num(get(handles.edit1,'String'));
b=m*val1;
msgbox(b)
end
2 comentarios
Image Analyst
el 30 de Abr. de 2016
You'll probably need webread() to download the latest currency exchange rates from the web.
"something is not working" is not very specific. Explain exactly what you see, or post all the red error text that you see in the command window.
Luke Libovic
el 1 de Mayo de 2016
Editada: Geoff Hayes
el 1 de Mayo de 2016
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Time Series Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!