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.
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 try, catch Execute statements and catch errors
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}