02-06-2011 11:31 PM
As of now Labview Mathscript can handle only 2 indices. for example:
Mathscript can execute the following
for i = 1:10
for j = 1:10
B(i,j) = i+j
end
end
but it can't do the following:
for i = 1:10
for j = 1:10
for k = 1:10
B(i,j,k) = i+j+k
end
end
end
Can anyone guide me to achive the latter using 2 indices and a for loop or something.....?
The actual calculation is quite complicated, i just need a way to handle 3 indices as in the example above.
Please help, i have spent a lot of time breaking my head over this thing.
I have also posted an idea here : http://forums.ni.com/t5/LabVIEW-Idea-Exchange/MathScript-should-handle-more-than-2-indices/idi-p/143...
thankyou.
02-07-2011 12:23 AM
Hey Ken,
This should work for you.
02-07-2011 11:27 PM
Thankyou for the prompt reply.