'Combntns' function (Where was every element in the previous matrix ?)

Hi, folks. I have a problem with 'combntns' function.
I have a matrix with values of a function z=z(x,y). Well, I built a matrix with all combinations of values of z=z(x,y) but i want to have the information about x,y values for every z value. What place occupied the elements in the previous matrix? Where was every element in the previous matrix ? How can I know that?
I hope I have explained well
Regards

 Accepted Answer

Ruymán, I think I understand what you are looking for, even though I don't know how this relates to your issue with combntns. You are probably looking for the find command. As an example:
z = 0.1:0.1:10; % your original data array
newz = reshape(z,10,10); % your transformed data
my_z = 5.5;
indz = find(newz==my_z) % index of value my_z in the original array
Does that help?

1 Comment

Very thanks for your interest, Mischa. I will try. I haven't explained well but I think 'find', perhaps, can help me. Regards

Sign in to comment.

More Answers (0)

Tags

Asked:

on 14 Mar 2014

Commented:

on 15 Mar 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!