Auto Complete in MATLab

Hello,
I am quite new in MATLab. I want to know how can I turn on auto complete for MATLab. Like when I type "[", It will automitacally shows "]". Please help me to do this.

回答 (2 件)

Walter Roberson
Walter Roberson 2020 年 7 月 21 日

0 投票

Those features are available in the Live Editor, but are not currently available in the editor for traditional scripts.

6 件のコメント

Alpha Boy
Alpha Boy 2020 年 7 月 21 日
You mean I cannot find this feature in Installed MATLab?
Rik
Rik 2020 年 7 月 21 日
If you are using live scripts, you can. Otherwise, probably not.
Walter Roberson
Walter Roberson 2020 年 7 月 21 日
When the upper left says "EDITOR" like the above, the feature is not active.
When the upper left says "LIVE EDITOR" like this, then the feature is active.
To create a Live Script, use New -> Live Script
Alpha Boy
Alpha Boy 2020 年 7 月 21 日
Thanks a lot. One more question. What is the basic difference between Live scripts and editor or command window?
Walter Roberson
Walter Roberson 2020 年 7 月 21 日
Live Scripts are for more interactive work. They display results as they go. They can be marked up with equations and text and pictures.
... They are also slower than regular MATLAB (but R2020a improved performance.)
Alpha Boy
Alpha Boy 2020 年 7 月 21 日
OK, Thanks :D

サインインしてコメントする。

Image Analyst
Image Analyst 2020 年 7 月 22 日

0 投票

Maybe what you're looking for is the autocomplete of a function, like when you type
>> vr=VideoReader(
then hit the tab key and get a list of arguments, methods, or properties.

5 件のコメント

Walter Roberson
Walter Roberson 2020 年 7 月 22 日
The user requested
Like when I type "[", It will automitacally shows "]"
Live Script does that, but the normal editor does not do that.
Parth Behede
Parth Behede 2021 年 7 月 28 日
I'm unable to turn ON the autocomplete of a function feature in my MATLAB R2021a. It was'nt turned on by default as well. Can someone help me with this? I really need to fix this issue.
Thanks
Walter Roberson
Walter Roberson 2021 年 7 月 28 日
Note that that feature is not available in the traditional editor at this time, only in Live Script.
Stanislav Buklovskyi
Stanislav Buklovskyi 2022 年 6 月 6 日
Ok, so Tab is accepting the suggestion/ What if I want to ignore the suggesion using the keyboard?
Image Analyst
Image Analyst 2022 年 6 月 6 日
@Stanislav Buklovskyi you should be able to just keep typing as you were planning. Just ignore any suggestion. Eventually the suggestions will go away when they are not applicable to where your cursor is on the line of code.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2020 年 7 月 21 日

コメント済み:

2022 年 6 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by