From: Peter Schreiber on 27 Jan 2010 13:32 Hi guys, How can I convert a 1x1x3 matrix to a 1d vector? Best Regards, Peter
From: Wayne King on 27 Jan 2010 13:41 "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 27 Jan 2010 13:42 "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 27 Jan 2010 14:11 Peter Schreiber wrote: > How can I convert a 1x1x3 matrix to a 1d vector? squeeze() or reshape() or A(:) where A is the matrix
|
Pages: 1 Prev: Converting to .jpg with a particular resolution Next: Line/Connector properties in Simulink |