How to get values from an array using another logical array
显示 更早的评论
I have an array 280x5 values, which contains reaction times. I have another array with the same dimensions that stores the trials that fulfill certain condition (a logical array). I want to extract the values from the first array using the second as an index. I have tried just using it as A(B) but it returns all the values as a single column with the reaction times, and I would like the output to be another array with the same dimensions with the reaction times and 0's. Could you guide me into solving this?
Many thanks, Ramiro
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Types 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!