OK, I'm embarrassed that I didn't even know about this particular new feature in R2009b. Yesterday I was in another developer's office looking at his latest project. He was typing away in MATLAB when all of a sudden he did something that made me sit up and look closer at the screen. "Hey!" I said. "Do that again!"
He had pressed TAB while typing in the filename input argument to imread, and it automatically completed the filename!
Really, I had no idea they had done this.
Here's a screen snippet.
The functions imread, imfinfo, and imwrite all now support tab completion for filenames in your current working folder.
This is a very useful enhancement to the language.
Another tab completion I’ve always wanted was for the key word arguments. For example, consider “regionprops” and the plethora of properties that it returns. It would be great to have tab completion so that it’s easier (and quicker) to specify the subset of properties one is interested in.
There’s many other examples but regionprops was the first one that came to mind.
Steve Eddins manages the Image & Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.
This is a very useful enhancement to the language.
Another tab completion I’ve always wanted was for the key word arguments. For example, consider “regionprops” and the plethora of properties that it returns. It would be great to have tab completion so that it’s easier (and quicker) to specify the subset of properties one is interested in.
There’s many other examples but regionprops was the first one that came to mind.
Sid—Thanks very much for the suggestion.