Transcription of MATLAB Basic Functions Reference - MathWorks
{{id}} {{{paragraph}}}
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 + str2 Append 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) Get 5th to 10th elements of xx(1:2:end)Get every 2nd element of x (1st to las)
*requires Symbolic Math Toolbox. Title: MATLAB Basic Functions Reference Created Date: 20210122130226Z ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}