'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

 采纳的回答

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 个评论

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

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by