Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Error: invalid ELF header - Trying to call a Matlab function from COMSOL
Posted 2020年1月5日 GMT-5 16:05 General, LiveLink for MATLAB 2 Replies
Please login with a confirmed email address before reporting spam
Steps to get the error:
- From Ubuntu, I do start COMSOL as:
comsol -mlroot /usr/local/MATLAB/R2019b -forcegcc
- Within COMSOL, under the "Global definitions" node,
Functions = "/home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m".
Funtion name = seed_v_w
Arguments = v_e, beta_p, lambda_p, v_w_X0 -> (they are constants and they have all been declared as COMSOL Variables)
- basically the MATLAB function is : ( files attached for complete code)
function Xt = seedvw(ve, betap, lambdap, X0) ... ( stuff here) Xt = (....calculated value) end
- When I click on the COMSOL "Compute", the following error appears:
- Feature: Compile Equations: Time Dependent (sol1/st1) Error in multiphysics compilation. Failed to load library.
- Library: /home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m
- Error: /home/miguel/Desktop/PCE proyecto/code/seedDispersal/seed_v_w.m: invalid ELF header
Thank you in advance !
Attachments: