![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254585/untitled.png)
Error in the medical image display
조회 수: 1 (최근 30일)
이전 댓글 표시
I am having an image stored in structure array(attached). When I am trying to display the image it is not coming properly (attached). Code used:
V = 2225:1:2225;
N = numel(V);
for kk = 1:N
F = sprintf('%d.mat',V(kk));
S = load(F);
C= S.cjdata.image;
T_1 = squeeze(C);
imshow(T_1);
end
댓글 수: 0
채택된 답변
Akira Agata
2019년 12월 16일
How about the following?
imshow(T_1,[]);
In addition, I believe the line 'T_1 = squeeze(C);' can be deleted.
![untitled.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254585/untitled.png)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!