Find index of array of cell

1 次查看(过去 30 天)
I really thanks tell me how can I find index of arrays assigned with 'F' and then delete the files corresponding to 'F' .
Thanks

采纳的回答

Adam Danz
Adam Danz 2020-2-17
编辑:Adam Danz 2020-2-17
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 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by