Reputation: 1537
>> 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
Is there a one-liner that can fill in the directory for array elements 2+? Seeking to avoid use of looping (for, while, etc.)
Upvotes: 1
Views: 72