matrix manipulation
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
Hi, I've an ASCII file like this
 450 1 2 3 4 5
 6 7 8 9 10 11
 12 13
 451 1 2 3 4 5
 6 7 8 9 10 11
 12 13
 452 1 2 3 4 5
 6 7 8 9 10 11
 12 13
 ...
and I would modify it to obtain a file like this
 450 1 2 3 4 5 6 7 8 9 10 11 12 13
 451 1 2 3 4 5 6 7 8 9 10 11 12 13
 452 1 2 3 4 5 6 7 8 9 10 11 12 13
Any suggestions? Thanks Gianluca
댓글 수: 0
채택된 답변
  Andrei Bobrov
      
      
 2012년 4월 18일
        f = fopen('test.txt');
c = textscan(f,'%f');
fclose(f);
out = reshape(c{:},[],3)'
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

