PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: confidence

MATLAB Basic Functions Reference - MathWorks

Back to document page

AB Basic Functions ReferenceMATLAB EnvironmentclcClear command windowhelp funDisplay in-line help for fundoc funOpen documentation for funload("filename","vars")Load variables from .mat fileuiimport("filename")Open interactive import tool save("filename","vars")Save variables to fileclear itemRemove items from workspaceexamplescriptRun the script file named examplescriptformat styleSet output display formatverGet list of installed toolboxestic, tocStart and stop timerCtrl+CAbort the current calculationOperators and Special Characters+, -, *, /Matrix math operations.*, ./ Array multiplication and division (element-wise operations)^, .^Matrix and array power\Left division or linear optimization.', 'Normal and complex conjugate transpose==, ~=, <, >, <=, >=Relational operators&&, ||, ~, xorLogical operations (AND, NOT, OR, XOR);Suppress output lines (with break)% Description Comment'Hello'Definition of a character vector"This is a string"Definition of a stringstr1 + str2Append stringsDefining and Changing Array Variablesa = 5 Define variable a with value 5A = [1 2 3; 4 5 6]A = [1 2 3 4 5 6] Define A as a 2x3 matrix space separates columns ; or new line separates rows[A,B]Concatenate arrays horizontally[A;B]Concatenate arrays verticallyx(4) = 7 Change 4th element of x to 7A(1,3) = 5 Change A(1,3) to 5x(5:10)

While-Loop % loops as long as a condition remains true n = 1; nFactorial = 1; while nFactorial < 1e100 n = n + 1; nFactorial = nFactorial * n; end % control structures terminate with end Further programming/control commands break Terminate execution of for- or while-loop continue Pass control to the next iteration of a loop

  Basics, Loops, Reference, Functions, Matlab, Matlab basic functions reference

Download MATLAB Basic Functions Reference - MathWorks


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries