How to add multiple suggestions to the automatic pop-up help boxes when typing a function?

15 次查看(过去 30 天)
I have some functions that can accept variable amounts of inputs and I want to better document them by adding appropriate suggestions to the box that pops up when you begin typing the function name, like this:
find(.png
Most built-in Matlab functions display help boxes like this but when I write a function from scratch, it either displays the inputs I specifically have listed, or it shows (...) if the function accepts "varargin", like so:
plot_Earth_km(.png
Those functions of course already handle the inputs properly, but I want to display the various acceptable ways of calling the function in the displayed suggestions here. Is there a way to customize this feature?
  4 个评论
Nathan
Nathan 2019-7-30
Ah, thank you! Unfortunately I have 2015b, so it looks like that functionality is not supported in my version. Good find though.

请先登录,再进行评论。

回答(1 个)

Renan Thomes
Renan Thomes 2025-8-19,18:10
Starting with MATLAB R2018a, you can personalize code suggestions and completions for your functions by following the Customize Code Suggestions and Completions documentation.

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by