Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 7 pages
Summary

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

Document preview thumbnail
Preview 3 out of 7 pages

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.

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)

Document information

Study
Uploaded on
June 1, 2020
File latest updated on
July 1, 2020
Number of pages
7
Written in
2019/2020
Type
Summary
$7.71

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
4.6
(22)
Sold
1090
Followers
446
Items
1
Last sold
1 month ago


Reviews from verified buyers



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions