variable or struct index creation
이전 댓글 표시
I am working with a huge set of image stacks. Instead of importing 100 images 1 by 1, I want to do this programmatically. I would like to either:
1) create a variable with the image name i.e. traces01, traces 02, ... traces 99. similiar to the command below
traces01 = imread('traces01.tif');
2) bring all images into a struct similiar to below
images.traces01 = imread('traces01.tif');
I have successfully created a ImportName variable with all 100 image names through the sprintf command using a for loop. I just cannot figure out how to now move to using a for loop to accomplish
images.ImportName(i) = imread(ImportName(i));
thanks for anyone's help.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!