How to plot curve y=a*x with changing parameter a?

1 view (last 30 days)
Is there any function in Matlab, which allows me to plot a curve with some sort of bar, where can I change a parameter a, to (for example) vary the slope? Something similar to the picture I atttached. Any help is appreciated :)

Accepted Answer

Matt J
Matt J on 2 Mar 2023

More Answers (0)

Categories

Find more on Line Plots 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!