

I figure there is some (see example), but I've never found the appropriate documentation. It would be nicer if there were a direct helptext hyperlink form. Unfortunately, since you need to put either "help" or "doc" in those hyperlinks, it only works in one or the other presentation form. You can use this to point to any function "function>subfunction" is just the syntax for addressing subfunctions in help() calls. In particular, you can use hyperlinks to invoke arbitrary Matlab commands, and point to other sections of helptext by having it invoke help(). You can use a limited form of hyperlinks in help. Method names are qualified I think names of methods in the same class as the current method can be unqualified.Įverything between the H1 line and "Examples:" is just a conventional formatting that I find readable help() doesn't treat it specially.

% documentation on obscure features and options, and so on.Įrror('This is a placeholder function just for helptext') % Here is where you would put additional examples, technical discussions, %EXTENDED_HELP Some additional technical details and examples % a single screen, and then break out obscure parts to separate sections. % It's broken out like this so you can keep the main "help foo" text on % More detailed help is in the extended_help">extended help. % and choose "Wrap selected comments" to re-flow the text. In the editor, you can highlight paragraphs, right-click, It's treated as preformatted text help() and doc() will not % Multi-line paragraphs of descriptive text go here. Here's the helptext formatting I've picked up on and found useful. This describes both simple helptext and generating separate HTML help files. MATLAB > User's Guide > Desktop Tools and Development Environment > Customizing Help and Demos > Providing Your Own Help and Demos. Performing a Voronoi tesselation of the region, as suggested in the comments, is one such possibility.Try this other section in the official documentation.
Matlab comment seperating zip#
If you do not have the Matlab Mapping Toolbox, you could look at the third party library M_Map M_Map home page, which offers some of the same functionality.Įdit: If the cloud of points for Zip codes has a bounding region that is non convex, you may need a more general computational geometry technique to find a better approximation to the bounding region. The only complication would be what coordinate system to work in, you might need to do a bit of work going between (lat, lon) and map (x,y) coordinates. The result K would be a vector of points enclosing the input X, Y vector of points, that could be used to draw a polygon. You could probably get a good approximation of the boundary by using computational geometry, e.g finding the 2D convex hull of each Zip code's set of points using the Matlab convhull function K = convhull(X,Y)
Matlab comment seperating code#
If you have a dense cloud of known points within each Zip code with coordinates, using machine learning to find the boundary enclosing those points sounds like overkill.
