Field ii ultrasound simulation: Unable to run C compiled binary files (mexw64 extension)

6 Ansichten (letzte 30 Tage)
In Field ii ultrasound simulation library a particular function field_init needs to be run initially. Here is the code for the m-file containing a binary complied function Mat_field that Matlab does not seem to recognize:
function res = field_init (suppress)
% Call the C-part of the program to initialize it
if (nargin==1)
Mat_field (5001,suppress);
else
Mat_field (5001,1);
end
Here is what I get when I invoke this function. Matlab does not seem to recognize Mat_field function tho the files Mat_field.mexw64 exists:
field_init
Unrecognized function or variable 'Mat_field'.
Error in field_init (line 25)
Mat_field (5001,1);

Antworten (1)

Steven Lord
Steven Lord am 19 Mär. 2024
Which operating system are you using? As you can see from the table below:
struct2table(mexext('all'))
ans = 6×2 table
ext arch _____________ ________________ {'mexa64' } {'glnxa64' } {'mexarm64' } {'linux-arm-64'} {'mexmaca64'} {'maca64' } {'mexmaci64'} {'maci64' } {'mexw32' } {'win32' } {'mexw64' } {'win64' }
mexw64 is the extension for MEX-files running in a MATLAB session on a 64-bit Windows machine. If you're using a Linux machine or a Mac, you will need a version of that MEX-file compiled for use on that system. [No, renaming the file won't work.]
  1 Kommentar
Subhajit
Subhajit am 20 Mär. 2024
I am running Matlab in Windows-10 laptop (64-bit) which appears to be compatible. I am not renaming any file.
Thanks for your reply & regards,

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by