Plot3D with RegionFunction equivalent in MATLAB
Suppose you want to plot a function g depending on two variables x, y over a range where y depends on x.
Using Mathematica this can be done in essentially one line (not counting the definition of the function g and the lower and upper bounds f1 and f2).
The output will be like this.
I am not aware of an equivalent function built directly into MATLAB. However, the same functionality can be achieved with some manual coding.
The essential idea is to create a surface in 3D space and plot this using MATLAB's surf function. I put the code in a gist, which you can find/fork/comment here.
The output looks like this.