This is not ideal, but what about this:
hold on
for k = 1:size(path,1)
plot3(path(k,1), path(k,2), path(k,3), 'o', 'LineWidth', path_widths(k));
end
Or maybe,
hold on
for k = 1:size(path,1)-1
plot3(path(k:k+1,1), path(k:k+1,2), path(k:k+1,3), '-', 'LineWidth', path_widths(k));
end
source
share