100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
Engineering 101 MATLAB Exam With Complete Solutions Latest Update €14,78
In winkelwagen

Tentamen (uitwerkingen)

Engineering 101 MATLAB Exam With Complete Solutions Latest Update

 0 keer verkocht
  • Vak
  • Engineering 101 MATLAB
  • Instelling
  • Engineering 101 MATLAB

Engineering 101 MATLAB Exam With Complete Solutions Latest Update...

Voorbeeld 3 van de 17  pagina's

  • 11 november 2024
  • 17
  • 2024/2025
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
  • Engineering 101 MATLAB
  • Engineering 101 MATLAB
avatar-seller
Engineering 101 MATLAB Exam With Complete
Solutions Latest Update


program - ANSWER a sequence of statements that instruct the computer to do
something.



interactive program - ANSWER Write statements in the terminal. Hitting Return executes
them immediately



script - ANSWER Write a series of statements ahead of time. Execute those statements
sometime later



suppress an output - ANSWER ;;



display - ANSWER produces an output



variables - ANSWER used to store data. refers to some chunk of memory where the
program stores a value. may contain letters of '_'. Case sensitive

ex: x, y, z



expressions - ANSWER used to compute new data

ex: x = 10+5, y = x .* 7.

consist of literals (3, 7.5), variables (a,b,c), and function calls (sin(3), sqrt(x))



assignment - ANSWER used to store a value into a variable

LHS = RHS, work right to left, takes the value of the RHS and stores it into the LHS.

ex: x .* 7 is assigned to y. variable may be re-assigned many times in code

,operators - ANSWER form compound expressions (+, *, -, etc)



whos - ANSWER used to get information about a variable, including the type of data it
currently stores



orange line around = - ANSWER warning, code will still run



comments - ANSWER use the % symbol. anything after the % until the end of the line is a
comment, comments are ignored by the program but are more for the human reader of
the code to help manage complexity



scalar - ANSWER single number or element



vector - 1 dimensional sequence of numbers or elements, numbers or elements can be
separated with spaces or commas



matrix - 2 dimensional grid of numbers or elements, you separate rows using ; or a new
line. you can use smaller matrices as components, if things doesn't line up, you get an
error



[] creates a vector or a matrix



(:) creates evenly spaced vectors. first:step:last

ex: 1:3:12 outputs [1,4,7,10], if the step is omitted it defaults to one



(') - ANSWER transpose operation takes a matrix and produces a copy with the rows
turned into columns



flipud - ANSWER flips the rows up/down

, fliplr - ANSWER flips columns left or right



array - ANSWER everything in matlab is an array. scalar = 1x1, vector = mx1 or 1xn,
matrix is mxn



zeros(m,n) - ANSWER returns an m x n matrix of zeros



zeros(m) - ANSWER returns a matrix of zeros using m for both rows and columns



ones(m,n) - ANSWER returns a m x n matrix of ones



ones(m) - ANSWER returns a matrix of ones using m for both rows and columns



magic(s) - ANSWER returns an s x s magic matrix. magic because each column sum =
each row sum = each diagonal sum.



repmat(A,xTimes,yTimes) - ANSWER makes a new matrix based on repeating matrix A a
certain number of times in the x direction and y direction



reshape(A,numRows,numCols) - ANSWER creates a new matrix with the same elements
as A, but the requested number of rows and columns. The dimensions must match up
with the original number of elements in A.



numel(x) - ANSWER gives the number of elements in x



length(x) - ANSWER gives the number of elements along the longest dimension of x



size(x) - ANSWER returns a vector with the number of elements along each dimension of

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, Bancontact of creditcard en je bent klaar. Geen abonnement nodig.

Focus op de essentie

Focus op de essentie

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper Easton. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €14,78. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 69411 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Start met verkopen
€14,78
  • (0)
In winkelwagen
Toegevoegd