how to Dynamic Field References in place of setfield and getfield ?
5 views (last 30 days)
Show older comments
Newman
on 21 Jun 2015
Commented: Walter Roberson
on 23 Jun 2015
hi i want to convert this code below to dynamic field references:
for fld = fieldnames(oi)'
o = setfield(o,fld{1},getfield(oi,fld{1}));
end
because it is showing warning an i want to convert my matlab code to c code .how shud i do that?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!