How can I enable the syntax for a function and the window for the workspace variables?

1 次查看(过去 30 天)
I was watching one of my colleague using Matlab and I noticed that when he writes a function, on the screen appears the syntax for that function (green arrow in the .jpg file attached), and also the name of the variables in a window (red arrow in the .jpg file attached). How can I enable this feature on my Matlab? Thanks for the help.

采纳的回答

Walter Roberson
Walter Roberson 2023-2-6
See https://www.mathworks.com/help/compiler/mcc.html#d124e20756 for a description of code suggestions.
For this to happen you might need Preferences -> Editor/Debugger -> Automatic Completions -> Suggestions and completions -> Show suggestions automatically
You might also be interested in https://www.mathworks.com/help/matlab/matlab_prog/customize-code-suggestions-and-completions.html which shows how to add code suggestions for functions that you yourself write.
  4 个评论
Gabriele Curcio
Gabriele Curcio 2023-2-7
Thanks for your answer but I do not have these options. I would like to remark that I have the 2021a version of Matlab and this may change something..
Walter Roberson
Walter Roberson 2023-2-8
In R2021a, Preferences -> Keyboard -> MATLAB Keyboard Preferences . Then
  • Command WIndow -> Enable function hints
  • Editor -> Enable function hints

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by