%% Change Curtain Location
% Display a partial curtain along the x-dimension (instead of the y-dimension) by transposing the input arguments.

[X,Y] = meshgrid(-3:.125:3);
Z = peaks(X,Y);
waterfall(X',Y',Z')

% Copyright 2019 The MathWorks, Inc.