Logical indeexing and finding the corresponding value at a particular instance
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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!
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!