RRest icon indicating copy to clipboard operation
RRest copied to clipboard

Reference to non-existent field 'young'

Open eelxpeng opened this issue 6 years ago • 1 comments

Hi, thanks for sharing the code. When I tried to run the synthesis data with RRest_v3 as described in the video, I got the following error:

Reference to non-existent field 'young'.

Error in specific_vortal_stats (line 30)
    if sum(rel_subj_els.young == subj_no)

As I checked with breakpoint, rel_subj_els indeed doesn't have young field. Could you help me with this?

eelxpeng avatar Jun 12 '18 04:06 eelxpeng

Hi, many thanks for pointing this out. I have now corrected this by changing line 341 of "calc_stats.m" in version 3 of the code to read: calc_vortal_stats = 0; Setting this to zero stops the code trying to calculate these statistics. These statistics are particular to this study, but they are not required for your analysis.

I hope this fixes the issue.

Best wishes,

Pete

peterhcharlton avatar Jun 13 '18 10:06 peterhcharlton