Error using randi Size inputs must be scalar issue.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
SHUAB KHAN
el 4 de Sept. de 2017
Editada: SHUAB KHAN
el 5 de Sept. de 2017
I was using matlab 2015a version and instead of using Randi, i used Randint, but in 2017 version its not accepted and if i'm using randi then its showing eror Error using randi Size inputs must be scalar. Error in hetro_net (line 73) Xloc(s)=randi(1,1,[x_loc1(i)+1,x_loc2(i)-1]); how it can solved? Showing Error using randi Size inputs must be scalar. Error in hetro_net (line 73) Xloc(s)=randi(1,1,[x_loc1(i)+1,x_loc2(i)-1]);
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 4 de Sept. de 2017
randi([x_loc1(i)+1,x_loc2(i)-1],1,1)
or just
randi([x_loc1(i)+1,x_loc2(i)-1])
1 comentario
Ver también
Categorías
Más información sobre NaNs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!