필터 지우기
필터 지우기

Typo in the nufft (R2024a) documentation?

조회 수: 2 (최근 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 CenterFile Exchange에서 Bartlett에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by