MATLAB genlouvain function, group_handler with missing 'char' input? -
i'm trying utilize genlouvain function finding community construction in matrix. i'm getting error saying undefined function 'group_handler' input arguments of type 'char'.
error in genlouvain (line 272) group_handler('assign',y); not sure problem is. don't have char in workspace , matrix i'm giving function symmetrical...i'm wondering if need define char variable somewhere give input? has else used genlouvain function , had issues char input arguments?
genlouvain
not native matlab function, , had google it. found here: http://netwiki.amath.unc.edu/genlouvain/genlouvain.
if @ readme file, says code written in mex , pre-compiled 64-bit mac os, windows , linux.
your os none of these, , readme says need compile mex code if operating scheme not 64-bit, before run code. specifically, there no pre-compiled functions operating system, , group_handler
function results after compile code (check private
folder in .zip file). because there no group_handler
function specific operating system, matlab complains because can't find file.
to generate right compiled functions operating scheme can run code, go mex_src
directory , run compile_mex.m
script.
however, need create sure mex
installed. such, type in mex -setup
in command prompt before run compile_mex.m
, create sure take right compiler operating system. in windows, visual c++ compiler, mac os have own flavour of gcc
(clang
actually), , linux gcc
itself.
once this, function should work.
fwiw, if read readme file, or went onto website , looked @ faq, have gotten answers there.
matlab
genlouvain is not a native MATLAB function, and I had to Google for it. I found it here: http://netwiki.amath.unc.edu/GenLouvain/GenLouvain.
ReplyDelete