error using matlab.graphics.axis.Axes/set

138 views
Skip to first unread message

Brian Greeley

unread,
Apr 12, 2022, 8:46:49 AM4/12/22
to roast-users
Hello Andy and fellow ROAST users,

Ran into the Axes issue again (Step 6). I encountered it with my first participant using their T1. However, based on the forum's history and prior sucess I changed the mesh options and added "'meshoptions',struct('distbound',0.5)" and it worked!

However, my next participant I used the same line of code and it failed. Here's my code.

roast('PATH\YA20_WIPVBRAIN_3DT1_0.8mm_20211215120407_21.nii',{'C3',2,'Fp2',-2},'zeropadding',60,'electype','pad','elecsize',[70 50 3],'meshoptions',struct('distbound',0.5))

and I got the same Axes error (see immediately below):

Error using matlab.graphics.axis.Axes/set
Error setting property 'CLim' of class 'Axes':
Value must be a 1x2 vector of numeric type in which the second element is larger than the first and may be Inf

Error in caxis (line 106)
            set(ax,'CLim',arg);

Error in visualizeRes (line 131)
    caxis(dataShowRange);

Error in roast (line 864)
        visualizeRes(subj,subjRasRSPD,T2,node,elem,face,injectCurrent,hdrInfo,uniqueTag,1,vol_all,ef_mag,ef_all);
>> 

Based on another user I updated DP (from 3.2.0 to 3.4.0), updated the library and I still get the same error.

Any help would be most appreciated!

Thanks a bunch,

Brian

Yu (Andy) Huang

unread,
Apr 13, 2022, 2:49:39 PM4/13/22
to Brian Greeley, roast-users
Hi Brian,

The general advice I can give to you is that the solver will work when the mesh is of high quality. You can get high-quality mesh by increasing its size. For that you can change the meshing parameter as you already did (also if I remember correctly decreasing distbound will increase mesh size). The other option is to try running this on a Linux machine as it's mostly tested on Linux.

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "roast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to roast-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/roast-users/6546f488-1f9d-4d1f-b2a5-9582619fc26bn%40googlegroups.com.


--
Yu (Andy) Huang, Ph.D.

Research Associate, Radiology Dept., Memorial Sloan Kettering Cancer Center
Rm. 321-G17P, 321 East 61st Street, New York, NY 10065
Office: 646-608-7608

Research Associate, CCNY-MSK Partnership for Artificial Intelligence
Center for Discovery and Innovation, Rm. 3.320,
85 St Nicholas Terrace, New York, NY 10031
Email: yhua...@citymail.cuny.edu; andypo...@gmail.com
Web: http://www.parralab.org/people/yu-andy-huang/
Reply all
Reply to author
Forward
0 new messages