Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-sided spectra of complex-valued signals are not scaled correctly (y[n] tab) #242

Closed
chipmuenk opened this issue Oct 11, 2023 · 1 comment

Comments

@chipmuenk
Copy link
Owner

chipmuenk commented Oct 11, 2023

When e.g. plotting the time signal $\exp(j \pi n)$ in the y[n] tab, the amplitude in the frequency view is twice the value it should be. For negative frequencies, the signal does not show up at all in the frequency view.

Workaround: Display two-sided spectra

Solution: Calculate the single-sided spectrum by adding negative and positive frequency components instead of simply scaling by two. This also takes care of correct DC-scaling.

@chipmuenk
Copy link
Owner Author

Fixed in v0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant