How to compile .mex from folders path?
Mostra commenti meno recenti
I need to compile .mex files from path folder. Is there any command for that or any other process for compiling mex files. Below are the files

Suppose I need to use this function mex_pb_parts_final_selected in demo.m file and it gives me an error mex_pb_parts_final_selected function is not exist. Can someone guide me how I resolve this error? Thanks
Risposta accettata
Più risposte (1)
Image Analyst
il 7 Feb 2023
Modificato: Image Analyst
il 7 Feb 2023
0 voti
I don't understand. Like Jan said it looks like they have already been compiled into mex files. Do you want to compile your demo.m file that uses those .mex files? If so you might need to use the -a option in mcc or else just put the full path to them when you call loadlibrary in your .m file code.
If it says that it can't find mex_pb_parts_final_selected(), then that function is not in your demo.m file like you thought and it's not anywhere on the search path. Try putting it in the same folder as demo.m.
2 Commenti
Gundeep
il 7 Feb 2023
Image Analyst
il 7 Feb 2023
Which DLL is mex_pb_parts_final_selected() trying to call?
Which DLL is for the Windows platform? You can't call a mex file made for a Mac.
Use the SetPath button on the Home tab of the tool ribbon and make sure you save the path, or make sure you call setpath() after you call setpath().
Categorie
Scopri di più su Troubleshooting in MATLAB Compiler SDK in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!