Find index of array of cell

조회 수: 2 (최근 30일)
Farshid Daryabor
Farshid Daryabor 2020년 2월 17일
편집: Adam Danz 2020년 2월 17일
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에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by