Jump to content
alr77

Picking up values inside a MATRIX VARIABLE

Recommended Posts

Dear all,

A simple looking question about how to pick up an @ttribute's value inside a MATRIX :

2@boo = set(1,2,3,4);

printf("boo[0] : %g\n",@boo[0]);

it doesn't work while it is working with vector or obviously with array.

Saddly, i feel stucked, if needed to pick up one of these values, separatly.

Humbly, all/any feedbacks are welcome even if i've dumbly mistaken myself (it could happen to anybody ;) ), thank you all.

cheers.

alr77

 

 

Share this post


Link to post
Share on other sites

you need to use getcomp
 

matrix2 boo= set(1,2,3,4); 
f@firstvalue = getcomp(boo,0,0);
f@secondvalue = getcomp(boo,0,1);

 

Share this post


Link to post
Share on other sites

Great Bunker ;)

Thank you a lot ! am currently brainwashin' myself from my Maya's usuals hehe ^^

I was tryin, tryin tryin any versions of boo[0][1] etc... but ok, we need this method, thank for it ;)

cheers, man :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×