'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

 채택된 답변

Mischa Kim
Mischa Kim 2014년 3월 15일
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에 대해 자세히 알아보기

태그

질문:

2014년 3월 14일

댓글:

2014년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by