Putting buffer into 2 dimensional array ?

4 visualizaciones (últimos 30 días)
I Made
I Made el 10 de Mzo. de 2013
As example i have :
frame=buffer(x,3);
and take example it's output < 3 x 2 int16 >
1 2
3 4
5 6
and i want to store it in array two dimension like :
A = [1 2 3; 4 5 6;]
how can i do that ?

Respuestas (2)

the cyclist
the cyclist el 10 de Mzo. de 2013
I don't fully understand your question, especially because your A matrix has different values from your other matrix. But, it sounds like maybe what you are looking for can be done with the reshape() command.
If not, can you please supply some more details?

Matt J
Matt J el 10 de Mzo. de 2013
A=reshape(frame.',3,2).';

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by