Matlab - Reshape problem

   
Vista:

Reshape problem

Publicado por Marco Antonio (61 intervenciones) el 10/10/2017 18:15:18
Hola tengo un pequeño problema tengo una matriz digamos
1
2
3
P3mutada =
 
001101001000111011100011101101110100100011001101101000111011000010101100110101100011010101100010011101011110000100110001000000010101101110000010101000011011111011111010011111001111100001001111101001100111000011011111001110101111000111100111001111111000110010110010110011110010010001010101011001110010110010110011110010010001010111010100111000001011110001000010001101110111101100010101101010000010101000011011111011111011011001110111110001001110101001110100001110011001010111000101101100110011100101100011100100101010110010111001011110010001110100010000100101111111100111001100101001101011110100100111000011101011100000011101101010110110001011100111110010110100011111001100110100001010100111100011110100011110001100001111100101111000101101111111001010000011110100101000100110111001001110010101110011100100101010110110111001001110010101111100111111100100100110101000011011100110001111101001111110011000100011000100101001101000100100011100010000111000001100001010000110100100011100010000011000001111000011111100001100010010100101100110110101010111001001001001100101111000001101111111001010000011110100000100100101010001100000111011111111010100001110100001010001000001010001100101110001000011000011101001010011001001000111110001000011010011101011110110110000000011110101110001101000110010000111111111100001110101110001101000110110010110000000000001001110000110100101011010100000101011000001001111100110100010111101010101101001110001010001000110101011110110011101000111101000000110001101001000110010000111111111100001010000110001111111100111000100101001101010110100101010110110111001001100110111110100000101000111001011101111100100010011010101000101000011011011111110011101001111100000101010000111110110100011110011001001011001101010100100101110101001001111000100111001001101101000111111000011101101110100100011010101101101001111001110111000101010010111100011110011000100110100101000101110110101100011100010100110100110011001010100100000000101000101001011010111011101000111101100110001011110100110101101001111110010111110010101101101001101001110111100100110010010010101101100001101001110111100101010010110

y la quiero cambiar a
001101001000111011100011101101110100100011
001101101000111011000010101100110101100011
010101100010011101011110000100110001000000
010101101110000010101000011011111011111010
011111001111100001001111101001100111000011
011111001110101111000111100111001111111000
110010110010110011110010010001010101011001
110010110010110011110010010001010111010100
111000001011110001000010001101110111101100
010101101010000010101000011011111011111011
011001110111110001001110101001110100001110
011001010111000101101100110011100101100011
100100101010110010111001011110010001110100
010000100101111111100111001100101001101011
110100100111000011101011100000011101101010
110110001011100111110010110100011111001100
110100001010100111100011110100011110001100
001111100101111000101101111111001010000011
110100101000100110111001001110010101110011
100100101010110110111001001110010101111100
111111100100100110101000011011100110001111
101001111110011000100011000100101001101000
100100011100010000111000001100001010000110
100100011100010000011000001111000011111100
001100010010100101100110110101010111001001
001001100101111000001101111111001010000011
110100000100100101010001100000111011111111
010100001110100001010001000001010001100101
110001000011000011101001010011001001000111
110001000011010011101011110110110000000011
110101110001101000110010000111111111100001
110101110001101000110110010110000000000001
001110000110100101011010100000101011000001
001111100110100010111101010101101001110001
010001000110101011110110011101000111101000
000110001101001000110010000111111111100001
010000110001111111100111000100101001101010
110100101010110110111001001100110111110100
000101000111001011101111100100010011010101
000101000011011011111110011101001111100000
101010000111110110100011110011001001011001
101010100100101110101001001111000100111001
001101101000111111000011101101110100100011
010101101101001111001110111000101010010111
100011110011000100110100101000101110110101
100011100010100110100110011001010100100000
000101000101001011010111011101000111101100
110001011110100110101101001111110010111110
010101101101001101001110111100100110010010
010101101100001101001110111100101010010110

el problema que tengo es que reshape me la combierte en

en colunas tomando las filas por ejemplo

A=
1 5 8 11
2 6 9 12
3 7 10 13

y yo nesecito que la cambien por ejemplo

A= 1 2 3 4
5 6 7 8
9 10 11

alguien me podria ayudar por favor

y no la puedo transpose por que me reduce el tamaño de filas y me alarga el numero de bits

gracias de antemano
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder