MATLAB Answers

finding the file names with similar strings and group them together

13 views (last 30 days)
Zahra Sheikhbahaee
Zahra Sheikhbahaee on 17 Feb 2021
In a file I have a bunch of plots which I would like to plot the one which have the same hyper-parameters (values for given variable with slightly difference between names) side by side but I don't know whether I should extract the string of file names and find hyper parameters or there is a simpler way? Here is my code
p1 = [0.0 0.0 0.5 1];
p2 = [0.5 0.0 0.5 1];
subplot('Position',p1), imshow(X1,map1,'Border','tight');
subplot('Position',p2), imshow(X2,map2,'Border','tight');
set(gcf, 'PaperUnits', 'inches');
x_width=8.25 ;
set(gcf, 'PaperPosition', [0 0 x_width y_width]); %
Zahra Sheikhbahaee
Zahra Sheikhbahaee on 17 Feb 2021
What if I use these lines to compare two image names:
tf = isequal(Num1,Num2);
Now the problem is how to get list of images from files with a given pattern and loop over them. Any thoughts?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!