MATLAB 2010-Vježba 1-Kreiranje GUI-a

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
494 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 16, 2011

Urađena vježba iz predmeta "Metode i primjena softračunarstva u geoinformatici" (Građevinski fakultet u Sarajevu, odsjek za geodeziju).

MATLAB 2010

Vježba 1
Kreiranje GUI-a

% --- 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)
eval( [ 'A=[' get(handles.vektorA,'String') ']' ] );
eval( [ 'B=[' get(handles.vektorB,'String') ']' ] );
C=A'*B;
set(handles.tabela,'Data',C);

% --- Executes on button press in pushbutton2.
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)
eval( [ 'A=[' get(handles.vektorA,'String') ']' ] );
eval( [ 'B=[' get(handles.vektorB,'String') ']' ] );
[X Y]=meshgrid(A,B);
Z=get(handles.tabela,'Data');
surf(X,Y,Z');

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more