Practical 3: Arrays

Array Multiplication Expressions

Table of Array Multiplication Expressions Involving a Dot Before Operator

A.*B multiplies corresponding elements of A and B
A./B divides corresponding elements of A and B
5./A divides 5 by each element of A
A.^B calculates A(i)^B(i) for every corresponding element in A and B
2.^A finds 2^A(i) for every element of A
A.^3

cubes each element in A