フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Logical indeexing and finding the corresponding value at a particular instance

1 回表示 (過去 30 日間)
Ariel
Ariel 2014 年 7 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
This is what I have:
- One cell array, lets call it test:
A 1 2
B 2 3
C 3 4
D 4 5
- Another cell array, lets call it test_2:
Q 2 3
R 3 4
T 3 3
U 4 3
- What I need to get is a vector. And I am trying to do this in a loop, if test(:,2)> test_2{a,2} then test(:,4)=test_2{:,1} at that instance. I am appending test with a 4th column.
- Basically, I am trying to find when one column becomes greater than the other and find the corresponding adjacent row value at that instance.
Thank you!
  2 件のコメント
Ariel
Ariel 2014 年 7 月 29 日
Or I should say if test(:,2)> test_2{a,2} then test(a,4)=test_2{a,1} since I am trying to do this in a loop
dpb
dpb 2014 年 7 月 29 日
test(:,2)> test_2{a,2}
What's a? There's nothing of that identifier in sight.
Mayhaps showing what you expect output to be for the input would help...

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by