Find index of array of cell

2 vues (au cours des 30 derniers jours)
Farshid Daryabor
Farshid Daryabor le 17 Fév 2020
Modifié(e) : Adam Danz le 17 Fév 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

Réponse acceptée

Adam Danz
Adam Danz le 17 Fév 2020
Modifié(e) : Adam Danz le 17 Fév 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

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by