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

MATLAB samenvatting commando's Statistiek & wiskundige data-analyse OPEN BOEK

Rating
5.0
(1)
Sold
3
Pages
7
Uploaded on
01-06-2020
Written in
2019/2020

Compacte maar zeer nuttige samenvatting van de taal Matlab. Met de focus op wat nuttig is voor het openboek-examen van Statistiek en wiskundige data-analyse, 2de bach industrieel ingenieur campus schoonmeersen. Maar volgens mij ook voor andere richtingen zeer bruikbaar, aangezien het over Matlab in het algemeen gaat. Document is laatst geüpdatet na eerste zit 2020. Ik had zelf 16/20 op het examen.

Show more Read less
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
June 1, 2020
File latest updated on
July 1, 2020
Number of pages
7
Written in
2019/2020
Type
Summary

Subjects

Content preview

Matlab overzicht
Inhoud
Algemeen .................................................................................................................................................................2
Plotten .................................................................................................................................................................2
Programmeren ....................................................................................................................................................3
Functies: ..............................................................................................................................................................3
Taylorreeksen: .....................................................................................................................................................3
(inverse) Laplace, dirac en eenheidsstap ............................................................................................................3
Matrices, vectors en stelsels ...............................................................................................................................4
Statistiek ..................................................................................................................................................................5
Verdelingsfuncties en normaliteit testen ............................................................................................................5
T-testen................................................................................................................................................................5
Crosstab ...............................................................................................................................................................5
ANOVA .................................................................................................................................................................6
Regressie..............................................................................................................................................................6
Correlatiecoëfficient: ...........................................................................................................................................7

,Matlab overzicht
Algemeen
Output getallen wijzigen: format short format long (E erna: scientific notation bv. shortE)
10
! log(x) is in matlab log10(x) , ln(x) is in matlab log(x)
4 constante getallen: pi, j=i (j²=-1), Inf (∞), NaN (not a number)
“ans” heeft de waarde van de laatste uitkomst

Plotten
Assenstelsels tekenen:
Titel toevoegen: title(‘Plot of the Sine function’)
Assen labelen: xlabel('X1') ylabel('Y') zlabel('Z')
Instellen waar lijntjes staan op x-as: xticks([1:6]) (zet hier op 1,2,..,6 een streepje)
Labels aan streepjes instellen: xticklabels({"januari","februari","maart","april","mei","juni"})
Legende: legend('reclame','omzet') (eerst getekend = eerst benoemen)
Gewone plot: plot(X,Y,LineSpec) Linespec: LineStyle, Marker, Color, …
Attributes overzicht:




Andere grafieken:
Parameterkrommen: plot( f1,f2) bv. t=0:0.01:2*pi; plot(cos(2*t), sin(5*t))
Plotten van functie: fplot(f); met bv. f= @(x) sqrt((25-x.^2)/5)
Plotten van functie in x&y: fimplicit(f) met bv. f = @(x,y) x.^2 + y.^2 - 3;
Boxplot: boxplot(X)  interkwartiel = iqr(A), percentiel = prctil(A,10)
Scatterplot: scatter(x1,y)
Histogram: histogram(R,n) met n aantal staven, kan weggelaten worden
Polarplot: bv. tt = -2:0.01:0; polarplot(tt,acos(tt+1));




Mesh: [X,Y]=meshgrid(x,y);* Z = sin(X)+sin(Y); mesh(X,Y,Z)




Contour: [X,Y]=meshgrid(x,y);* Z=… contour(X,Y,Z)


* met x en y bv -10:0.5:10 afhankelijk van stappen (hier 0.5) dichter of minder dicht op elkaar


Tools: axis equal hold on hold off

, Programmeren
If … elseif … else … end en for … end




Voorbeeld:

Logische operators: > < >= <= == ~= (not equal) &(AND) |(OR) ~(NOT)

Som operator: bv symsum(factorial(i), i, 0, 10) %4037914

Functies:
(Voor stelsels oplossen en nulpunten zoeken, zie onderaan matrices)
Bij y = sin(x) is x in radialen. Bij y = sind(x) is x in graden (analoog voor andere functies)  examen 2020 eerste zit

Asymptoten zoeken:
VA: solve(limit(@(x)f,x,a)==Inf,x)
HA:
o1 = limit(f19/x,x,Inf);
b1 = limit(f19-o1*x,x,Inf);
o1*x + b1 %SA voor x-> +inf

Limieten:
Linkerlimiet: limit(F,x, 1, 'left') %in x=1 rechterlimiet analoog
Bv. zoeken waar afgeleide 2 is:
Afg = diff(F(x),x);
vpasolve(Afg==2,x)

Oppervlakte tussen 2 functies: zoek snijpunten (bv. 0 en 4)  int(f1(x)-f2(x),0,4)

Y-waarde zoeken bij een bepaalde x-waarde:
Indien functie zonder functie handler: f1 = (x.^2/2);  subs(f1,x,1)
Indien met function handler: f1 = @(x) (x.^2/2);  yco = f1(xco)

Dubbele integraal (bv voor volume berekenen):
int(int(4,-sqrt(2*x-x^2),sqrt(2*x-x^2)),0,2) %2 ints in elkaar oef 24

Snijpunten zoeken:
1ste manier:
x1 = solve(f1(x)-f2(x)==0,x)
f2(x1) %y-co vinden
de
2 manier:
F = @(x)[x(1).^2 + 5*x(2).^2-25; x(1)+x(2)-2];
fsolve(F, [-1,2]) %schatting voor punten

Je kan aan solve ook voorwaarde meegeven, bv: opl = solve([diff(r(t),t)==0, 0<=t<=2*pi],t)
!!! Dat is belangrijk, soms krijg je anders niet alle resultaten.

Taylorreeksen:
Bv. Taylorontwikkeling rond x=1, afgekapt na term in x: t = taylor(f,x,1, 'Order',2)
(inverse) Laplace, dirac en eenheidsstap
ilaplace(f) of laplace(f) Diracfunctie = dirac(t) eenheidsstap: heaviside(x)
$7.25
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Reviews from verified buyers

Showing all reviews
4 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
indinginf Universiteit Gent
Follow You need to be logged in order to follow users or courses
Sold
1083
Member since
6 year
Number of followers
446
Documents
1
Last sold
3 weeks ago
Industrieel Ingenieur UGENT

Hallo! Ik studeer industrieel ingenieur informatica aan de UGent, modeltraject. Het kan zijn dat ik nog documenten heb staan die ik hier niet heb opgezet. Indien je hulp nodig hebt bij een bepaald vak, stuur me gerust. Als je opmerkingen of vragen hebt, aarzel niet om mij te contacteren. Ik beantwoord alle vragen graag! Veel succes!

4.6

22 reviews

5
19
4
1
3
0
2
1
1
1

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