fill area under curve in a waterfall or plot3 plot

7 views (last 30 days)
I'm trying to plot a series of asymmetric lorentz-gauss curves in a waterfall plot, but I cannot fill the area under the curve in a plot3 plot. In a waterfall plot I can fill the area under the curve but the area between the lorentz-gauss curves are also filled (like in a surface plot). What plot should I use and what can I do to get my desired plot?
Below you can see my code. If I use plot3 instead of waterfall I get a better result but I cannot fill the area under the lorentz-gauss curves.
Thanks, Nico.
Imax(1) = 1
a(1) = 5
b(1) = 2;
d0(1) = 2.5;
SpecNum = 10;
time.z_intervall = 1;
alpha{1} = linspace(-6,6,SpecNum);
x_axis = linspace(0,10,10^4)';
k = 1;
for i = 1:SpecNum;
I = AsymmLG(Imax(k),x_axis,d0(k),a(k),b(k),alpha{k}(i))+0.01.*randn(10^4,1);
Peak(:,i) = + I;
end
x_axis = repmat(x_axis,1,(size(Peak,2)));
time.z = repmat(linspace(0,SpecNum*time.z_intervall,SpecNum),size(Peak,1),1);
h = waterfall(x_axis, time.z,Peak)
grid on
zlim([-0.1 1.5])
xlabel('frequency'); ylabel('time'),zlabel('Intensity');
title('plot3')
set(h, 'FaceColor', 'flat');
set(h, 'FaceColor', 'w');
set(h, 'FaceAlpha', 0.7);
set(h, 'EdgeColor', 'k');
set(gca, 'Color', [1 1 1]*0.85)
set(gca, 'GridLineStyle', '-');

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!