how can i create a random motion with a specified curve

1 Ansicht (letzte 30 Tage)
ADNAN KIRAL
ADNAN KIRAL am 23 Mai 2019
Kommentiert: ADNAN KIRAL am 27 Mai 2019
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
delete.png
an example like this
delete.png

Akzeptierte Antwort

Image Analyst
Image Analyst am 25 Mai 2019
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 Kommentare
Image Analyst
Image Analyst am 26 Mai 2019
Bearbeitet: Image Analyst am 26 Mai 2019
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.
ADNAN KIRAL
ADNAN KIRAL am 27 Mai 2019
I see thanks for your reply.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by