Error using randi Size inputs must be scalar issue.
Ältere Kommentare anzeigen
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]);
Akzeptierte Antwort
Weitere Antworten (1)
KL
am 4 Sep. 2017
randi(1,1,[x_loc1(i)+1,x_loc2(i)-1])
This is not a valid syntax!
2 Kommentare
SHUAB KHAN
am 4 Sep. 2017
KL
am 4 Sep. 2017
Had you done it before, you would have known that you've used the false syntax in the very first place!
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!