name_id=cell(1,lengthfiles-2);
for i=1:lengthfiles;
%use{} represent the content if the cell
%and then assign value to the variable
if i>2;
name_id{1,i-2}=filenames(i).name;
end
end
今天只了解了这么多,奈何我慢但是我不会停!
开启Matlab旅程(1)对于元胞类型的赋值
最新推荐文章于 2023-04-27 11:43:15 发布