Feeds
提问
multiply scalar with struct regarding
is possible to multiply a scalar value with struct field?if possible plz help me?
8 years 前 | 1 个回答 | 0
1
个回答提问
i got error at the line"stream(j).Position=stream(j).Position+2.*rand(1).*(sea.Position-stream(j).Position);" in Subscript indices must either be real positive integers or logicals. please help me.
for i=1:Npop pop(i).Position=LB+(UB-LB).*rand; pop(i).Cost=objective_function(pop(i).Position); end [p...
9 years 前 | 0 个回答 | 0
