How to change the position of row and column?
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!