Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Showing function help when using varargin
Post Body

I have created some plotting functions, which are similar to MATLAB's plot function, where the first argument could be an axis handle, or your first plotting input- then you can hand in the stuff you need to plot, then you can hand in things like "FaceColor" etc. The function works just fine; however, since it is part of a shared toolkit, I want the help on it to be useful.

With MATLAB's plot, if you type plot( then it shows you all of the options of inputs, aka plot(x,y) then plot(x,y,LineSpec) then plot(X1,Y1....Xn,Yn) and so on. But with mine, it just says plot_covariance(varargin). What I want to be able to do is show the different options in the help, but I can't find a way to do so.

Does MATLAB have a method? I know I should write a good comment block at the top, but I would like if I could show that pop-up tooltip.

Author
Account Strength
100%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
386,554
Link Karma
6,904
Comment Karma
370,092
Profile updated: 1 month ago
Posts updated: 10 months ago
+5

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago