Typo in the nufft (R2024a) documentation?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ana Egatz-Gomez
il 10 Mar 2024
Commentato: Ana Egatz-Gomez
il 10 Mar 2024
The Mathlab documentation is so well developed, instructive and helpful. I am trying to learn and use the nufft, reproducing the documentation examples one by one.
Is there a typo in the section "Nonuniform Sample Points With Time and Frequency Scaling"?
Should the graph following the text on the documentation show X(t) instead of S(t)?
S = 2*sin(2*pi*0.4*t) + sin(2*pi*2*t); % Signal with peak frequencies at 0.4 Hz and 2 Hz
X = S + rand(size(t));
plot(t,S)
xlabel("t (seconds)")
ylabel("X(t)")
Ref:https://www.mathworks.com/help/matlab/ref/double.nufft.html#mw_4af840be-4ac1-4dbe-9083-5ba2d9021e53
0 Commenti
Risposta accettata
Paul
il 10 Mar 2024
Hi Ana,
Yes, either the plot command was intended for X or the ylabel is wrong. In the context of that example, I suspect they meant to have
plot(t,X)
But, having said that, the previous example on that page also plots S (without any labels), so maybe the mean to always plot the uncorrupted signal.
If you click on a star a the bottom of the page under "How useful was this information?" I'm pretty sure you'll get a pop-up box in which you can provide further feedback about that doc page.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!