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

java - SSE Emitter : Manage timeouts and complete() -

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

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -