PDA

View Full Version : bug of the Finite Element Model(FEM) Tool


emfstim
June 30th, 2008, 10:58
Dear All:

I run the fem_gui.m in fem directory. I got the three layer sphere model with label 0 to
label 3. Following the step 1, when I click Tessellation to creat surface, the codes stops because of the errors as shown below:
============================================
>> fem_gui
??? Undefined command/function 'volumethinning'.
Error in ==> fem_gui>tessellate_volume_Callback at 468
[Vkoord_vt,rmax]=volumethinning(VV,0,thin,[]);
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> fem_gui at 56
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uimenu Callback.
===============================================

It seems thst there should a m file called volumethinning.m in the directory. Does anybody
know it ?

emfstim
July 4th, 2008, 03:16
I have solved the problem. The dll function is dependent on the matlab version.

Sylvain
July 4th, 2008, 05:53
Well done. Sorry I could not provide feedback any sooner.

The dll indeed depends on the Matlab version and the operating system. I guess you have recompiled them using the mex command, right ?

Thanks for the feedbacks!

adildenizduru
July 7th, 2008, 09:55
Dear All,

Where can I find the "volumethinning.c" file in order to compile for x64 operating system?
(Required for the FEM)

Deniz

emfstim
July 7th, 2008, 10:55
Dear Sylvain:

Thank you for reply. I actually visit the support in official matlab webpage. And I found the suggestions on dynamic link library. Following the suggestions, I was
successful to run fem_gui.m in Matlab Ver. 7 (R14) in WinXP(32 version).
I do not run mex again. I simply started a c compiler called lcc.

Regards
emfstim