Comment my function in order to get a decent title in the documentation
Show older comments
Hello everyone,
I am in the process of figuring out how to comment adequately my function so that its html published version is easy to read for everyone. By that I mean that I would appreciate if it had a nice bold orange title, with a description underneath it and then the table of content for each section. The code as is generated by Matlab when creating a new function is:
function [curve] = historical_curve(index_name,id,date,starting_bin,nb_cont_bins,bin_length,method)
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
When publishing without executing the code for performance purposes, it yields nothing . I tried the example in the documentation, but apparently I can only manage to get it working for this script, not my function.
I have tried adding up the "%% " before the title, it does not work.
Any ideas ? Thanks for reading this :)
Accepted Answer
More Answers (0)
Categories
Find more on Printing and Saving in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

