Typo in the nufft (R2024a) documentation?

2 次查看(过去 30 天)
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

采纳的回答

Paul
Paul 2024-3-10
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.
  1 个评论
Ana Egatz-Gomez
Ana Egatz-Gomez 2024-3-10
Thanks Paul. I have never paid attention to the how useful star, probably a better way to provide feedback.

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by