Closed psadil closed 2 weeks ago
Hi Patrick,
Can you verify which variable being passed to "save" in palm_miscwrite is a cell array? None should be...
Alternatively, can you send me your 3 input files (data_L, L_midthickness, and L_area). You can share from, e.g., OneDrive or Dropbox or any other service. My email is like my username here on Github, at gmail.
Thanks!
Anderson
Thanks for taking a look. I've just now emailed you a link to the files.
For what it's worth, I think that the error is triggered here: https://github.com/andersonwinkler/PALM/blob/762ba37a014247aa6b7aa3f6e4657c697905fbd6/fileio/%40gifti/save.m#L191-L192
At this point, the metadata
field is an empty cell array
>> this.data{1}.metadata
ans =
struct with fields:
name: 'Name'
value: {}
Using that empty cell array with fprintf
with this leads to the error (now with the helpful specification of which function was being called with cell
inputs)
>> fprintf(fid,'%s<Value><![CDATA[%s]]></Value>\n',o(4),this.data{i}.metadata(1).value)
Error using fprintf
Function is not defined for 'cell' inputs.
Hi Patrick, I've just made a commit that should hopefully fix the problem. Could you try with this updated version? Thanks! Anderson
Looks good, thanks!
I am running into an error while trying to follow along with Example 10: Using CiFTi files . I apologize if I'm just not setting up the command correctly.