The colon is the most powerful operator in the MATLAB basis.
This is your memory bank. Every variable you create in the Command Window—whether it is a single integer or a massive dataset—is stored here. The Workspace browser allows you to view the value, size, and class (data type) of your variables without needing to print them to the screen. 4.6.1 matlab basis
Proceed to Section 4.6.2 (Logical Indexing) to see how this basis applies to data filtering. For now, type clear , clc , and practice building vectors using the colon operator. The colon is the most powerful operator in the MATLAB basis
A = [1, 2; 3, 4]; B = [5, 6; 7, 8]; C = A * B; % standard matrix multiplication D = A .* B; % element-wise multiplication The Workspace browser allows you to view the
v1=[1,-2,2,-1]v sub 1 equals open bracket 1 comma negative 2 comma 2 comma negative 1 close bracket