Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cell- instead of char- array to accommodate filenames of unequal length in RFsens #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hmri_create_RFsens.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
copyfile(qsensmap,fullfile(supplpath,spm_file(qsensmap,'filename')));
try copyfile([spm_str_manip(qsensmap,'r') '.json'],fullfile(supplpath,[spm_file(qsensmap,'basename'), '.json'])); end %#ok<*TRYNC>
% substitute the corrected maps to the output structure
jobsubj.raw_mpm.(rfsens_params.input(ccon).tag) = char(corrected_structurals);
jobsubj.raw_mpm.(rfsens_params.input(ccon).tag) = cellstr(char(corrected_structurals));
Copy link
Member

@lukeje lukeje Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does

jobsubj.raw_mpm.(rfsens_params.input(ccon).tag) = corrected_structurals;

not work?

Copy link
Contributor Author

@Barisevrenugur Barisevrenugur Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to nature of error, I was fixated to quickly correcting char ---> cell, have not really checked or cared what data type is corrected_structurals, if it is already a cell-array, of course it should just work to delete the char (instead of adding cellstr). I will change if thats the case


end

Expand Down