how can i create a random motion with a specified curve
2 ビュー (過去 30 日間)
古いコメントを表示
hi
how can i produce a random motion with a specified curve ?
i want to simulate a random motion which is fitting the following curve. can anyone please help me with that ?
many thanks
an example like this
0 件のコメント
採用された回答
Image Analyst
2019 年 5 月 25 日
See my attached demo to fit a decay curve. Put in the points you see on the graph to train it. For example (0.5, 8) and (5, 1).
Then, simply use rand() to add random noise to the y vector, and possibly also the x vector (if you want).
3 件のコメント
Image Analyst
2019 年 5 月 26 日
編集済み: Image Analyst
2019 年 5 月 26 日
Oh, I thought you were trying to create a simulation (you did mention simulation in your first post). If you have actual data, then simply use plot() to plot your existing data.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!