Search Comments and Ratings

go

   
Date File Comment by Comment Rating
03 Feb 2015 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
YX Sun

YX Sun (view profile)

5
17 Sep 2014 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Valeria

Hi, is there a way to avoid multiple publishing of subfunctions that are called multiple times? Let's say for instance that I have created an auxiliary function that needs to be called twice with different argumetns. This way your tool will list it in the Called Functions twice and will attach it at the end of the document twice.
Thank you.

Comment only
13 May 2014 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Denis Anikiev

5
30 May 2013 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667

@jon there is not going to be a pdf version. This is simply spliced html code together. MATLAB uses a completely different method for creating pdfs. If you want pdfs look at the "Publish The Main And The Subfunctions Together". It creates a new mfile with all your functions then publishes it.

I don't know what you mean by doesn't publish first script alongside your functions.

The example makes two files. It creates a published file of all the files it thinks it needs and copies code from them into the "withfuncs" file.

If you think the code is not working properly either give me more info or send me the files so I can look at it.

Comment only
24 May 2013 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
jon

jon (view profile)

Close but doesn't have pdf or publish my first script alongside my functions.

I have two separate files.. myfile & myfilewithfuncs. They are not a single file like the example makes.

I have two functions in separate scripts along with my main file. I also have one inline function.

3
05 Feb 2013 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667

Updated to include ability to remove functions from publish list.

I can look into adding pdf output if I have time. It would take some effort considering I am splicing this together with html code and the default publish function does not create html code before making the pdf.

Comment only
31 Jan 2013 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Michael

This is great. I was wandering though if there is a way to suppress a particular function file? I am running a student version and I do not have the toolbox that includes the roundn function, so I am using one found here. I would rather this function not be published in order to keep my overall report looking better.

Comment only
20 Nov 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
SeungGyu cho

you're a jewel.

5
15 Oct 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Wang Jing

Great job! It will be perfect if the output can be pdf.

5
29 Sep 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Mohammad

Thanks for this code! It helped me to combine everything nicely for my programming class.

However, is there a way to combine everything into a .pdf? I'm currently copying everything published in HTML to Word and saving as a .pdf.

Comment only
19 Mar 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Jiro Doke

Jiro Doke (view profile)

@Nick,

Thanks for adding the web output in case of no output argument. "nargout" is the appropriate way to deal with that.

Comment only
06 Mar 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Arvind

Arvind (view profile)

Thanks Nick... This is exactly what I needed

Comment only
13 Feb 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667

Mikhail,

Thanks for finding that. I have added it to the file and have submitted the updated version.

Comment only
07 Feb 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Mikhail

Mikhail (view profile)

Thanks!

However, it also includes my called MEX functions into the generated report (which looks kinda weird in the report).

I added the following around line 95 to mitigate this particular behavior:

%% Remove hits that are probably MEX functions
idx=strfind(out,mexext);
for i=1:length(idx),
idxs(i) = ~isempty(idx{i});
end
out(idxs)=[];

Comment only
23 Jan 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667

@Jiro

I have added some crude support for displaying the html document when no output argument is given. I just used nargout. Is there a more elegant solution?

Comment only
19 Jan 2012 Publish dependent and called functions Publish explicitly called functions not found in the MATLAB root. See mfile for limitations. Author: Nick Angelini

Nick Angelini (view profile)

  • 1 file
  • 102 downloads
  • 4.66667
Jiro Doke

Jiro Doke (view profile)

Very nice entry Nick!

This may be about preference, but it would be nice if I call the function without any output argument, then it would open the published HTML in the MATLAB browser. This is the same behavior as "publish".

Otherwise, I really like it. I plan on highlighting this entry for this week's Pick of the Week.

Thanks for the submission!

5

Contact us