Typo in the nufft (R2024a) documentation?

4 ビュー (過去 30 日間)
Ana Egatz-Gomez
Ana Egatz-Gomez 2024 年 3 月 10 日
コメント済み: Ana Egatz-Gomez 2024 年 3 月 10 日
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 件)

カテゴリ

Help Center および File ExchangeBartlett についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by