Error: Insufficient number of outputs from right hand side of equal sign to satisfy assignment in ft_read_mri
1 回表示 (過去 30 日間)
古いコメントを表示
extracting compressed dataset to /tmp/x923803b604e8fcd6307b919260113255/...
extracted dataset is located at /tmp/x923803b604e8fcd6307b919260113255/sub-01_anat_sub-01_T1w.nii
Insufficient number of outputs from right hand
side of equal sign to satisfy assignment.
Error in ft_version (line 161)
ftver = tmp.Version;
Error in ft_notification (line 74)
[v, p] = ft_version;
Error in ft_notice (line 62)
ft_notification(varargin{:});
Error in ft_read_mri (line 475)
ft_notice('the coordinate system appears to be ''%s''\n', coordsys);
Error in untitled (line 1)
[mri] = ft_read_mri('sub-01_anat_sub-01_T1w.nii.gz');
0 件のコメント
回答 (1 件)
Walter Roberson
2022 年 1 月 16 日
ftver = tmp.Version;
Somehowm, tmp is an empty struct or object (that does have a field or property named Version) . Remember that if you have a structure name followed by a period followed by a field name, then you have structure expansion happening; if the struct existed and was a scalar struct then tmp.Version would give you a single output; if the struct was a struct array, tmp(1) to tmp(5) for example, then tmp.Version would expand to that many outputs as a comma separated listed. And likewise, if tmp is empty them tmp.Version expands to zero outputs.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!