Skip to content

small error in get_mean_amplitude() #5

Description

@LeonvonHaugwitz

Hi Eric,

many thanks for your work! There is a easy to fix error in get_mean_amplitude() in line 102 when specifying to export means of a specific cluster of an effect. Matlab throws the error in line 118 when checking length(clust_info.null_test).


% Assign variables

 effect = p.Results.effect;
 clust_id = p.Results.clust_id;
 bins = p.Results.bins;
 output_file = p.Results.output_file;
 results = GNDorGRP.F_tests(test_id);
    
if isempty(effect)
        null_test = results.null_test;
        clust_info = results.clust_info;
else
        null_test = results.null_test.(effect);
        clust_info = results.null_test.(effect);            [ should be:  clust_info = results.clust_info.(effect); ]
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions