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

Tentative fix of plotSpectrum.m #9

Merged
merged 1 commit into from
Jan 11, 2018
Merged

Tentative fix of plotSpectrum.m #9

merged 1 commit into from
Jan 11, 2018

Conversation

mychele
Copy link
Member

@mychele mychele commented Jan 10, 2018

Hi,
I get an error when the plotting is enabled with the "draw" boolean in the config file, at the iteration 47 of the main script (with nothing changed with respect to the latest commit in the master).
The error happens because plotSpectrums is trying to plot an empty vector.

Error using ylim (line 31)
Limits must be a 2-element vector of increasing numeric values.

Error in plotSpectrums (line 20)
          ylim([min(Fpsd) max(Fpsd)])

Error in simulate (line 250)
		[hSpectrums(1)] = plotSpectrums(Users,Stations);

Error in main (line 72)
		simulate(Param, simData, utilLo(iUtilLo), utilHi(iUtilHi));

This is a tentative fix, but I don't know if there are other elements to consider.
Best,
Michele

@jakthra
Copy link
Contributor

jakthra commented Jan 11, 2018

I'll merge the fix, however it looks like an issue that's not just related to the spectrum plotting. The sig variable should not be empty if the user is scheduled. I'll look into it.

Copy link
Contributor

@jakthra jakthra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepted for immediate bugfix. Issue created to look into the bug.

@jakthra jakthra merged commit fa2aab1 into master Jan 11, 2018
@jakthra jakthra deleted the fix_plotSpectrums branch January 11, 2018 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants