input 100 signals spaced at 50 hz
1 view (last 30 days)
Show older comments
how can i input 100 signals in MATLAB? starting with frequency 1000Hz spaced at 50 hz.. therefore signals start from frequency 1000 hz to 50000 hz. what should be the sampling frequency? i have to implement energy detection for spectrum sensing in cognitive radio. please help
2 Comments
Accepted Answer
Walter Roberson
on 6 Mar 2014
You may wish to consider linspace(start_frequency,end_frequency,number_of_points)
but be sure that you really want 100 points and not 101 points (one extra point is needed surprisingly often, but certainly not always.)
2 Comments
Patrik Ek
on 7 Mar 2014
Edited: Patrik Ek
on 7 Mar 2014
Ok so you want 100 different variables, 1 per frequency that does not make sense? And also you say display, but that is a quite wide scope. I you want I can provide code to display the frequencies randomly scattered in a text image, but I guess you want something else?
More Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!