matlab - How do I display the code of a function when using publish? -


function [ distancec_s ] = xsol (xrange,source1ou2,nbzeros) y = zeros(1,nbzeros); capteur = [xrange(:),y(:)]; distancec_s = calcul_distance(capteur,source1ou2); end 

how display code in main.m? teacher said write
"<include >name_fonction.m</include >" , nothing works.

things have tried:

xsol.m xsol <include>xsol.m</include> "<include>xsol.m</include>" 

when publish main.m on pdf, want code of xsol.m displayed after code executes.


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

python 2.7 - Lines in my code being skipped and I am not sure why -

python - multiprocessing pool with map -