Error using ' Transpose on ND array is not defined.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
After reading values from a gray scale input image and inputting other parameters following the code below:
% read data from input file x = imread(file_in);
% arrange data read from image for OFDM processing w = size(x,1); h = size(x,2); x = reshape(x', 1, w*h);
it gives the error message: Error using ' Transpose on ND array is not defined. Error in ofdm_simulation (line 34) x = reshape(x', 1, w*h);
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 30 de Jul. de 2013
You image x is probably nxmx3. check it by
size(x)
0 comentarios
Más respuestas (1)
Jan
el 30 de Jul. de 2013
The first step for such problems is using the debugger:
dbstop if error
Then run the code again until the error occurs. Now you can check the locally used variables:
size(x)
When it is an RGB image:
x = reshape(permute(x, [2,1,3]), 1, w*h, 3);
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!