Question: Group assignment

hey guys, I'm curious if there is any way to do a group assignment like the following

JointNum := 3;
seq(alpha[i], i = 1 .. JointNum) := 0, 0, 0;

which should as result be the following assignment

alpha[1], alpha[2], alpha[3]:=0,0,0

which is a valid assignment standalone but not works in the sequence style form . how can I implement this type of assignment

Please Wait...