Animating While Trimming the Spikes of the Figure

1 view (last 30 days)
clearvars;
close all;
clc;
x = 0:50;
y = rand(1,length(x));
plot(x,y);
I want to trim the spikes of the figure at y=0.5, but while doing it, I want to animate the trim with a triangle (as a tool cuts the spikes with a knife).
Can anyone please help me with this?
Thank you

Answers (0)

Categories

Find more on Animation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!