MATLAB Answers

Find index of array of cell

1 view (last 30 days)
Farshid Daryabor
Farshid Daryabor on 17 Feb 2020
Edited: Adam Danz on 17 Feb 2020
I really thanks tell me how can I find index of arrays assigned with 'F' and then delete the files corresponding to 'F' .
Thanks

  0 Comments

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 17 Feb 2020
Edited: Adam Danz on 17 Feb 2020
If you want to delete the file names from the files array....
load('example.mat')
select = strcmp(out, 'F');
files(select) = [];
% or
% files(select) = {''}; % replace with empty

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!