addRow to TimeIntervals not working as expected #105
-
|
I'm trying to convert a struct of trial parameters and behavior to the Intervals section of the nwb file. I can create the TimeIntervals and manually add a row but I cannot build a string and then add it. Is this a Matlab string issue or an MATNWB issue? Any suggestions on how to proceed? Thanks, `
ans = 1×4 table
rowStr =
Error in types.util.dynamictable.addRow (line 47) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
or a cell-array |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the help. Using a cell-array works - the key (that I was missing) is the expansion, rowArgs{:}. JK |
Beta Was this translation helpful? Give feedback.
addRowexpects name-value pairs as separate arguments. However, it looks like you are trying to pass a single string containing all the arguments. MATLAB doesn't automatically parse a string into separate arguments. If you want to constructrowDataas a single argument, I think you would need to use a struct:or a cell-array