Update my plot each time parameters change

3 ビュー (過去 30 日間)
Ouael Chkoundali
Ouael Chkoundali 2019 年 3 月 10 日
コメント済み: Ouael Chkoundali 2019 年 3 月 13 日
Hi,
using GUIDE I have now a programm whose output is a vector and a plot of its data. Because the plot has many little variations, I used the csaps function to get a smoothier plot. I want now to add a slider to my figure to change the smoothing parameter and I want that the plot to be updated each time the value of the slider changes. How can I do this? I found this on mathworks.com but I coudn't apply it to my case: https://de.mathworks.com/help/control/ref/stepplot.html .

採用された回答

Rik
Rik 2019 年 3 月 10 日
You should set the callback function of your slider to update the plot. If you need more specific help, attach your code (and fig) to your question.
  1 件のコメント
Ouael Chkoundali
Ouael Chkoundali 2019 年 3 月 13 日
Thanks a lot Rik

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by