How to use function toi with GHz frequency?
Show older comments
Hi all,
I would like to use the function toi https://es.mathworks.com/help/signal/ref/toi.html to generate a plot showing the third-order distortion products from two GHz frequencies 3.6 and 3.7 GHz, however, it shows wrong the central frequencies:

this is the code:
rng default
x = sin(2*pi*3600000000/32*(1:640))+cos(2*pi*3700000000/32*(1:640));
q = x + 0.01*x.^3 + 1e-2*randn(size(x));
toi(q,32)
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!