Does MATLAB have any kind of debug mode that shows vector and matrix dimensions?

Viewed 269

I'm new to MATLAB (using it for a course on machine learning).

There are parts of the language that are just fabulous - for example, the notational convenience of vector and matrix math. But I find I'm struggling with cause-and-effect of various operations (for example, ".*" vs. "*"), and what I end up doing is decomposing lines of code into constituent expressions to see what dimensions they produce.

Is there any "mode" (for lack of a better word) in MATLAB that would show me what the dimensions of the intermediate expressions are?

The closest equivalent I can think of is the SQL Server Query Analyzer, which decomposes the SQL query (also set-oriented) into a series of steps that give you a clue as to what's being executed as opposed to what you intended.

Does such a thing exist in MATLAB or any of its extensions?

TIA Josh

2 Answers
Related