Open Hailu-UCAS opened 3 years ago
This means you are missing a folder containing the function nanremove.m on your Matlab path. This is in CanlabCore/Misc_utilities/nanremove.m.
"Add with subfolders" to add all relevant folders to the path.
Best wishes, Tor
On Dec 22, 2020, at 4:31 AM, Hailu-UCAS notifications@github.com wrote:
when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ.
You also need the Canlab Core toolbox.
Best wishes, Tor
On Dec 22, 2020, at 4:31 AM, Hailu-UCAS notifications@github.com wrote:
when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ.
Thanks very much for your email. Please forgive me for my late reply.
best wishes, Hailu
Tor Wager @.***> 于2020年12月23日周三 09:47写道:
You also need the Canlab Core toolbox.
Best wishes, Tor
On Dec 22, 2020, at 4:31 AM, Hailu-UCAS @.***> wrote:
when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/canlab/MediationToolbox/issues/16>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/16#issuecomment-749874242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHOJVI5ZCNOA6MCMYP6U7TSWFD3PANCNFSM4VFMBQAQ .
when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'