>> a=dir('*.slx')
a =
4x1 struct array with fields:
name
date
bytes
isdir
datenum
>> a(1).directory=pwd
a =
4x1 struct array with fields:
name
date
bytes
isdir
datenum
directory
有没有一种可以填充2+数组元素的目录?寻求避免使用循环(for,while等)