From: Peter Schreiber on
Hi guys,
How can I convert a 1x1x3 matrix to a 1d vector?

Best Regards,
Peter
From: Wayne King on
"Peter Schreiber" <schreiber.peter15(a)gmail.com> wrote in message <hjq0rk$aid$1(a)fred.mathworks.com>...
> Hi guys,
> How can I convert a 1x1x3 matrix to a 1d vector?
>
> Best Regards,
> Peter

>>help squeeze

Wayne
From: James Tursa on
"Peter Schreiber" <schreiber.peter15(a)gmail.com> wrote in message <hjq0rk$aid$1(a)fred.mathworks.com>...
> Hi guys,
> How can I convert a 1x1x3 matrix to a 1d vector?
>
> Best Regards,
> Peter

x = rand(1,1,3)
y = x(:)
z = squeeze(x)

James Tursa
From: Walter Roberson on
Peter Schreiber wrote:

> How can I convert a 1x1x3 matrix to a 1d vector?


squeeze() or reshape() or

A(:) where A is the matrix