Community Profile

photo

DrK


Last seen: mer än ett år 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...

nästan 2 år 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...

nästan 2 år 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...

nästan 2 år ago | 3 answers | 0

3

answers