See Above.
Hello Maryam,
Is it the below error you are refering to:
??? function oneRoundWSN(numNodes,grid,receiver)
|
Error: Function definitions are not permitted at the prompt or in scripts.
hello Yogesh,
yes, i face to this erro: ??? function oneRoundWSN(numNodes,grid,receiver)
The matlab script is a function. In order to get it to work, you need to pass the variables numNodes, grid and receiver.
numNodes would be the number of nodes if I am not mistaken.
grid would take value 0 or 1 as per the comments in the m-file.
receiver is the ID of the base station. (If I understand properly, it should be a value between 1 and numNodes).
Copy the code in the attached txt file and paste it in an m-file and save it as "oneRoundWSN.m".
In the matlab command prompt try:
>> oneRoundWSN(10, 0, 1)
where,
10 is the number of nodes
0 denotes the grid => random topology
1 is the base station ID I chose between 1 and 10(number of nodes defined).
Thanks,i try and tell to you..
That error is correct but this error come:
Input argument "numNodes" is undefined.
Error in ==> WSN at 16
numNodesXY=round(sqrt(numNodes));
I am try and it work,
Thanks a lot....
HELLO every one... I want to learning a render motor. what am i doing for beginning a render motor? an anyone help me?
04 May 2016 8,409 0 View
Hello everyone ... what are the requirement for employee in nvidia corporation? experience and others...?
04 May 2016 5,655 0 View
I want to measure delay for packets and use it .
08 September 2014 4,416 0 View
my thesis is about congestion control in WSN, buti want to use my protocol in a application, can you help me to definean application that my protocol is used
08 September 2014 1,165 3 View
How can I give matlab output (fuzzy logic file(.fis)) to castalia as an input?
08 September 2014 5,812 10 View
See above.
08 September 2014 7,985 3 View
Can any one help me about create application in castalia that notes sense data and forwards them to sink to test some parameters like number of sensors and rate of sending? I don't know how to...
07 August 2014 5,093 1 View
I want to measure energy in wireless sensor network, please help me
07 August 2014 1,006 1 View
In radioTest simulation, the consumed energy is decreased with increase in date-rate? why?
07 August 2014 7,872 6 View
I want to simulate WSN in castalia so that fuzzy controller controls the parameter of simulation. Can anyone help me?
07 August 2014 9,183 3 View
My name is Apurva Saoji. I am a Ph.D scholar in Computer engineering in India. I am looking for international expert in reviewing my PhD thesis, "Competitive Optimization Techniques to Minimize...
07 August 2024 4,600 2 View
need of sensor details or sensor development for this question.
28 July 2024 4,539 3 View
I am reaching out to seek your valuable advice and recommendations regarding the best software tools to use for this research. Specifically, I am looking for software with a user-friendly...
22 July 2024 3,794 1 View
There exists a neural network model designed to predict a specific output, detailed in a published article. The model comprises 14 inputs, each normalized with minimum and maximum parameters...
14 July 2024 2,714 3 View
hello dear i need to learn this program any one know ??? i want to convert path propagation to Image reconstruction 2d how is that done ? lik this image??
14 July 2024 1,811 0 View
how to convert the area with 4 node and convert it to reconstruction image in wireless insite?like the fig
14 July 2024 4,435 0 View
I would like to perform a literature review at this time on augmented learning and learning augmented algorithms to enhance performance-guided surgery
06 July 2024 246 1 View
Forecasting within neural Network
24 June 2024 6,800 1 View
Please give answer. Also explain mathematical equations behind this.
22 June 2024 6,869 2 View
In CNN(convolution neural network), can the feature map obtained determinately by a random initialization convolution kernel? if not, how to decide the weights in convolution kernel to obtain the...
20 June 2024 6,418 6 View