100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting Programmeren module 2

Rating
-
Sold
2
Pages
4
Uploaded on
04-11-2014
Written in
2013/2014

Samenvatting van 4 pagina's voor het vak Biokinematica aan de HHS

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
November 4, 2014
Number of pages
4
Written in
2013/2014
Type
Summary

Content preview

9 dec 2013
(1)
GUIDE
Graphical User Interface Development Environment
GUI
Graphical User Interface

Een GUI maken
Tik in Matlab in het command window: guide  Blank GUI
Hetgeen dat verschijnt wordt ook wel figure genoemd.
Je kunt hier een Pushbutton, static text, axes (grafiek) en een oa slider toevoegen.
Wanneer je dit doet, maakt Matlab een speciale functie aan
(pushbutton1_callback).
Als er % voor een regel staat, vat Matlab de tekst als commentaar op. Deze regels
worden dus niet uitgevoerd tijdens het runnen.

Om tekst te veranderen opent men de Property Inspector en verander je de tekst bij
de property String.
Klik met de rechter muisknop op de pushbutton en kies View Callbacks.


Callback
 Reageren op een actie van de gebruiker
 Tijdens het runnen is de property inspector onbruikbaar
 Programmacode om berekeningen te doen en properties te veranderen in
M-file in callback funtion.

Handle = gevolgd door een uniek volgnummer van elke component (text1)

Get = ophalen van bepaalde waarde in Matlab
 P = (get(handles.edit5,’string’)
o P is nu een tekst dat staat voor een numeriek getal
o P = num2str(p)  rekent de tekst om naar een werkelijk getal
 P = str2num(get(handles.edit1,’string’))

Set = component eigenschap veranderen in Matlab terwijl het programma runt
 (set(handles.text1,’string’,’I love BT’))
 Set(handles.text3,’string’,[‘Hoek alpha: ‘num2str(180*alpha/pi)])
o Hoek van alpha wordt omgezet van radialen in graden.

Plot = de grafiek plotten
 Plot(handles.axes1,x,y)
 Xlabel(‘Tijd [s]’)
 Ylabel(‘Afgelegde weg [m]’)

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Ders Haagse Hogeschool
Follow You need to be logged in order to follow users or courses
Sold
100
Member since
11 year
Number of followers
40
Documents
26
Last sold
5 year ago

2.5

11 reviews

5
1
4
3
3
2
2
0
1
5

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions