How to generate random function with respect to time ??
9 views (last 30 days)
Show older comments
Commented: Thomas Koelen on 30 Mar 2015
How to generate random function with respect to time knowing that the magnitude limit and time duration is predefined ????
where sf is your sample frequency, time is your time, and mag is your magnitude. S is the signal.
so you change your time to 7200, your mag to 50. you might want to change mag+2*rand*mag to just rand*mag since you are talking about power. if you want to look what the power was at that time you simply do: S(4.5*60).
More Answers (1)
Mahdiyar on 30 Mar 2015
There are many random function that you may use, such as randperm, randi and so on. Can you explore more what you want to implement?
Find more on Spectral Measurements 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!