Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Construct image from given file
조회 수: 1 (최근 30일)
이전 댓글 표시
these are the codes of my script to open the attached file
f= fopen('d20160413.txt');
c = textscan(f,'%s','delimiter','\n');
fclose(f)
c = c{:};
[~,~,~,v] = regexp(c,'\d*\.\d+E[\-\+]\d{2}')
out = reshape(str2double([v{:}]),27,[]);
however, i cannot construct the image from the code. I have used imshow(out) to get the image but it doesnt work.
댓글 수: 5
Walter Roberson
2016년 10월 13일
27 x 27 is all that is in that file. You can imshow() it with an InitialMagnification to show in a larger window, but there just isn't more data there.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!