I get this error. "The argument to reference the dynamic structure must be evaluated to a valid field name." I have a structure called spectData and it looks like this:
spectData{1} = data: [256x26 double] textdata: {1x26 cell} colheaders: {1x26 cell} Row: [256x1 double] Col: [256x1 double] Cho: [256x1 double] Cho0x25SD: [256x1 double] Cho0x2FCit: [256x1 double] PCho: [256x1 double] PCho0x25SD: [256x1 double]
I am trying to assign this in a function call, the line of code looks like this. This is the line of code that Matlab says, the error is in.
SDdata = spectData{sliceNum - firstSlice}.(MetabMapSDString);
where metString is a string of one of the names, for example, "PCho0x25SD" spectData has 4 substructures in total, all as shown. What am I doing wrong?? It's double, so everything should be fine, I thought.
source share