sc = DocSimpleDouble(1:10);
a = sin(sc);
class(a)
ans =
double
Built-In Data Organization Methods
This group of built-in methods reorders or reshapes the input argument array. These
methods operate on the superclass part of the subclass object, but return an object of the
same type as the subclass.
sc = DocSimpleDouble(randi(9,1,10))
sc = DocSimpleDouble(randi(9,1,10))
sc =
1x10 DocSimpleDouble:
double data:
6 1 8 9 7 7 7 4 6 2
b = sort(sc)
b =
1x10 DocSimpleDouble:
double data:
1 2 4 6 6 7 7 7 8 9
Methods in this group include:
- reshape
- permute
- sort
- transpose
- ctranspose
12 How to Build on Other Classes