GEOE 359 Lecture Notes - Lecture 3: Transpose, Semicolon, Size Function

57 views2 pages

Document Summary

You type a command, matlab responds with an answer; repeat. Matlab processing is based largely on array and matrix manipulations: matrices are like tables of data. Use curser keys to revisit previous commands. Use first letters and cursor keys for more control. Standard mathematical functions are built in: cos, sin, log, logid, exp, use help to understand input and output. User variable names should be different from built-in functions, variables (use something descriptive) Do not put spaces in the title in matlab, you can use _ File/clear workspace (or type clear") to clear all variables: first and/or last command should be clear to avoid confustion. 9 is a matrix with dimension 1x1 (row, column) Number of columns in a must equal the number of rows in b. Transpose is when the rows and columns are switched. To transpose a matrix in matlab the code is b". Use square brackets: v = [1 3 10]

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents