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

evaluation.m #3

Open
qhu009 opened this issue Jan 11, 2020 · 3 comments
Open

evaluation.m #3

qhu009 opened this issue Jan 11, 2020 · 3 comments

Comments

@qhu009
Copy link

qhu009 commented Jan 11, 2020

Hi Earthat,
I encounter an issue when I run evaluation.m. Firstly, when I input the number of the node and the number of the RSU, I got the following error. When I check the code, I notice the code didn't go through the first loop.

evaluation(10,3)
Undefined function or variable 'distnc'.

Error in evaluation (line 7)
total_dist=sum(distnc); % total distnace from source to destination

May I ask for some help?

Thank you very much.

Best regards,

Steven

@earthat
Copy link
Owner

earthat commented Jan 11, 2020

kindly check numel(nodtble). probably this value is either 1 or zero

@qhu009
Copy link
Author

qhu009 commented Jan 11, 2020

Yes, Earthat. the value is 1. But I have a question. The whole purpose is to configure 1 RSU and multiple nodes. Then I want to see pcktloss,throughput as the number of the nodes increasing.
For the existing code, I try to call function
function [E,pcktlossrate,total_dist,pcktloss,thrgput]=evaluation(nodtble,node_rsu)

I put the following line in the console.
evaluation(10,3)

my understanding is nodtble is 10 and node_rsu is 3. Am I right?

@qhu009
Copy link
Author

qhu009 commented Jan 11, 2020

Hi Earthat, Steven again, I rechecked the code, I notice the UrbanCitySimu.m will trigger the evaluation function. I also notice at the end of UrbanCitySimu.m, you have the code to generate plot figures. May I ask where to find those figures. I am so sorry, I am very new for MATLAB. Sorry for the inconvenience

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

2 participants