Find index of array of cell

3 visualizaciones (últimos 30 días)
Farshid Daryabor
Farshid Daryabor el 17 de Feb. de 2020
Editada: Adam Danz el 17 de Feb. de 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

Respuesta aceptada

Adam Danz
Adam Danz el 17 de Feb. de 2020
Editada: Adam Danz el 17 de Feb. de 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

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by