1/13
Not MCQ just general concepts
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
break statements ____
get out of the loop it exists in
continue statements send you to ___
the beginning of the for/while loop
jump statements ___
transfer control to another part of the program
two types of jump statements in MATLAB:
break and continue
what is the difference between the built in functions âdispâ and âfprintfâ?
disp: displays strings and one variable
fprintf: prints multiple structures and multiple variables, takes formatting code to display in specific ways
sprintf
formats data into string or character vectors
nargin returns the number of _____ given in the call to the currently executing function
function input arguments
true or false: a script m-file has no input arguments, no output arguments, no keyword when finished
true
True Errror =
True Value (calculation) - Approximate Value (numerical method)
Relative True Error (Δa) =
True Error / True Value
Approximate Error (Ea) =
Present Approximation - Previous Approximation
Relative Approximate Error (Δa) =
Approximate Error / Present Approximation OR (Present - Previous) / Present
examples of truncation error
pi, sqrt(2), maclaurin series
approximate riemann sum and approximation of derivates ____ sums
truncates