How to configure Up Key "Previous History Command" search behavior?

2 次查看(过去 30 天)
I have two PC's with Matlab 2017a on them. On one of them, when I type text into the command window and push up, it searches the previous history with a " myText* " search, i.e. the only wildcard in the search is at the end of the entered text.
On the other PC, the "previous history command" search instead executes a " *myText* " search, with wildcards at both the beginning and the end of entered text. I have no idea how I enabled this, but I would like to disable it.
Does anyone know how to configure what kind of search the "Previous History Command" performs?

采纳的回答

Matthew
Matthew 2018-12-5
I actually found the answer shortly after asking:
The linked stack overflow answer states:
First, make sure that the command history window is docked (If you have a floating window every time you press up then it is not docked. There is a drop-down menu - little circle with a triangle inside. Open the menu and select "Dock").
Once\if the window is docked, open the menu again and make sure that "Match Beginning" is selected and not "Match Anywhere".
I should have googled "Previous History Command" prior to asking this question

更多回答(0 个)

类别

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

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by