variable or struct index creation
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!