Mex file error

126 views
Skip to first unread message

Humberto M.

unread,
Jan 16, 2020, 8:21:39 AM1/16/20
to medi-users
Hello all,

I am new to using the MEDI_toolbox and keep getting a mex file dicomparse error (picture is attached). I am using the latest version of Matlab (R2019b). Any suggestions on how to approach this will be greatly appreciated. 

Thanks!
-Humberto Monsivais
Screen Shot 2020-01-15 at 5.58.09 PM.png

Pascal Spincemaille

unread,
Jan 16, 2020, 8:32:36 AM1/16/20
to medi-users
Dear Humberto,

Please redownload the toolbox. It was updated yesterday to deal with this issue.

Pascal

Humberto M.

unread,
Jan 16, 2020, 10:48:47 AM1/16/20
to medi-users
Thank you so much! Redownloaded and my data is now processing.  

Mathieu Santin

unread,
Apr 18, 2024, 12:38:45 PM4/18/24
to medi-users
Hello,
I got the same error message when I try to run Read_Dicom, apparently there was an issue when I ran create_dicomattrs, the dicomparse.mexmaci64 is not generated.
Is it due to an issue with Sonoma and Matlab2023B ?

Thanks,
Mathieu

spince...@gmail.com

unread,
Apr 18, 2024, 12:43:53 PM4/18/24
to medi-users
Mathieu,

Can you replace MEDI_toolbox/functions/create_dicomattrs.m with the attached file, and try again?

Pascal
create_dicomattrs.m

Mathieu Santin

unread,
May 29, 2024, 11:46:05 AM5/29/24
to medi-users
Thanks for the file.

Unfortunately now I am experiencing this error :

Operands to the logical AND (&&) and OR (||) operators must be convertible to logical scalar
values. Use the ANY or ALL functions to reduce operands to logical scalar values.

Error in Read_Siemens_DICOM>get_dcm_tags (line 195)
            if (attrs(i).Group==gr)&&(attrs(i).Element==el)

Error in Read_Siemens_DICOM (line 43)
info2 = get_dcm_tags(filename, {'EchoNumber'});

Alpay Özcan

unread,
Aug 6, 2024, 4:01:22 AM8/6/24
to medi-users
Hello,
In regard to the cause of the bug,  the attribute 'EchoNumber' should be 'EchoNumbers'.
Attached is the file (AS IT IS and WITHOUT ANY WARRANTIES, USE IT AT YOUR OWN RISK) Read_Siemens_DICOM.m, wherein I hope the issue was fixed.
The other Read_XXXX_DICOM.m variants probably need the same touch, which I haven't attempted....

The file needs to be copied under the functions directory.

Best of luck, please update with any developments...

Cheers,
alpay
Read_Siemens_DICOM.m
Reply all
Reply to author
Forward
0 new messages