Borrar filtros
Borrar filtros

Demo script for Cell Tower Optimization Problem - Radius

3 visualizaciones (últimos 30 días)
Josh
Josh el 7 de Nov. de 2014
Comentada: Simran Sandhu el 15 de Mzo. de 2019
Hi,
I am working on the Demo script for Cell Tower Optimization Problem. I need to set a fixed radius rather than the random radius it outputs. In the file celltowersetup.m radius is defined as
R = rand(st, N,1)+1; % allocate array
but if I change it to
R = 1; % allocate array
just one tower appears rather than the 10 asked for. Where am I going wrong
Thanks
  1 comentario
Simran Sandhu
Simran Sandhu el 15 de Mzo. de 2019
I am facing some error, I dont kow what am doing wrong while assigning the intial conditions.
Can you please mail me the code?
simrangsandhu@hotmail.com
Thank you

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 7 de Nov. de 2014
I haven’t looked at the code for the demo, but it may be looking for the row size of ‘R’.
See if:
R = ones(N,1);
solves the problem.
  1 comentario
Star Strider
Star Strider el 8 de Nov. de 2014
I can’t tell from what you’ve provided. If you set ‘N’ to the number you want at the outset, and assigned ‘R’ as ‘ones(N,1)’ rather than ‘ones(10,1)’, everything should work, since I assume the code later refers to ‘N’ rather than to ‘length( R )’. (In the original code, ‘R’ is an (Nx1) vector of random numbers on (1,2).)
That’s my best guess.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by