Size: a a a

2017 October 05

NK

ID:242740995 in comput.math
vs
источник

NK

ID:242740995 in comput.math
for i=1:length(C)
   pt=Sequence(i)
   box(pt,distance);;
   pt
 end;
источник

g

gsomix in comput.math
@narien

1) pt is array, that growing in for loop
2) pt is variable
источник

NK

ID:242740995 in comput.math
yes
источник

NK

ID:242740995 in comput.math
size of pt is 100x1 when we use pt(i)
источник

NK

ID:242740995 in comput.math
but when we use pt it is 1x1
источник

g

gsomix in comput.math
That's right.
источник

NK

ID:242740995 in comput.math
so one value is passed each time
источник

X

Xak in comput.math
источник

NK

ID:242740995 in comput.math
to the method
источник

NK

ID:242740995 in comput.math
right ?
источник

g

gsomix in comput.math
Yep.
источник

X

Xak in comput.math
Is this one-liner the one you need?
источник

NK

ID:242740995 in comput.math
yes
источник

NK

ID:242740995 in comput.math
is this has effexct on the caluation of Box , if i pass one by one value and the whole array ?
источник

g

gsomix in comput.math
What is box?
источник

X

Xak in comput.math
You should really try to google first. Start with "matlab generate random permutation", I believe the first page answers your current question along with some you'll probably ask next...
источник

NK

ID:242740995 in comput.math
ok
источник

NK

ID:242740995 in comput.math
thanks
источник

X

Xak in comput.math
No problem
источник