I have 3-dimensional data to be built in Matlab. The data set is constructed by adding 10 exponential curves with various parameters along the y-directions, such as
x = 0:0.01:15; x0 = 0.5; y = [beta1, beta2, beta3, beta4, beta5, beta6, beta7, beta8, beta9, beta10]; Z(1, :) = A*exp(-(x-x0).^2/beta1); Z(2, :) = A*exp(-(x-x0).^2/beta2); Z(3, :) = A*exp(-(x-x0).^2/beta3); Z(4, :) = A*exp(-(x-x0).^2/beta4); ... Z(10, :) = A*exp(-(x-x0).^2/beta10); % here A could be change based on beta too (no code shown here)
I am trying to build a Z with a waterfall, except that I do not want the height (i.e. the vertical line) to appear on the edge. I do not know if there is any other way to construct the data in the form of waterfall curves, but without these vertical lines. Thanks
source share