How to change the position of row and column?

2 visualizaciones (últimos 30 días)
Nada Zamri
Nada Zamri el 2 de Mzo. de 2017
Comentada: Nada Zamri el 3 de Mzo. de 2017
Hi
once I execute using following script:
f= fopen('NG JIT SIM1.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f)
c = c{:};
[~,~,~,v] = regexp(c,'\d*\.\d+E[\-\+]\d{2}');
out = reshape(str2double([v{:}]),27,[]);
I obtain the output that is arranged in matrix form (27x27) However, the row and column position was wrongly placed in the output. The first row of my output should be the first column of my output read from the bottom.
Actually I have a raw file ( as attached) and I want to separate all the data in the file to proper column and row( matric form 27x27)
Please help.
Thank you.

Respuestas (1)

KSSV
KSSV el 2 de Mzo. de 2017
Try transposing, read about flipud and flipur.
  1 comentario
Nada Zamri
Nada Zamri el 3 de Mzo. de 2017
but looking at the script that I already have. I'm not sure where to apply the transposing.

Iniciar sesión para comentar.

Categorías

Más información sobre Point Cloud Processing 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