Community Profile

photo

DrK


Last seen: 2 maanden ago Active since 2022

Statistics

Content Feed

View by

Answered
dynamic naming of structures
Actually, found my own answer: x = 'name'; eval(sprintf('%s = struct;',x)); This creates a structure named 'name' and one can...

3 maanden ago | 0

| accepted

Answered
dynamic naming of structures
Not really. I know about the paranthesis around field names, but it creates another level of structure. The problem is that if...

3 maanden ago | 0

Question


dynamic naming of structures
If I have a variable x='name', how can I use x to build a structure with name 'name' that looks like: name.a name.b No need t...

3 maanden ago | 3 answers | 0

3

answers