To debug my Octave/MATLAB code, I want to be able to do something like:
A = magic(3);
b = 42;
describe(@A, @b);
and get output like:
filename.m line 3: "A" is a 3x3 matrix
filename.m line 3: "b" is a scalar of value: 42
For multiple variables, how can I print the:
- Calling function's file and line
- Name
- Type
- Dimensions