WHAT DOES THIS MEAN?

2 views (last 30 days)
monalisa  ghosh
monalisa ghosh on 5 Feb 2015
Answered: Guillaume on 5 Feb 2015
d = d( : )

Accepted Answer

Guillaume
Guillaume on 5 Feb 2015
: is the colon operator. As per the documentation:
A(:) is all the elements of A, regarded as a single column.
So, your line just reshapes d as a single column. It is equivalent to
d = reshape(d, [], 1);

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!