Oct 2, 2024
7 + 8 = 16
, sqrt(225) = 15
ans
store results of expressions.clc
clear vars
x = 10
, y = 20
.x + y = 30
;
.who
to view active variables and their types (e.g., double, char, string).+
, -
, *
, /
, ^
(power), sqrt()
..^
.%
for comments, helpful for documentation.:
or linspace()
.;
to define rows.'
e.g., x'
for transpose.zeros()
, ones()
, eye()
for identity matrices.matrix(row, col)
.plot(x, y)
to visualize data.xlabel()
, ylabel()
, title()
, legend()
, and grid on
.figure
, subplot()
for multiple plots.help
or doc
for function documentation.==
, >
, <
, &
(and), |
(or)..m
files.