MATLAB: How to filter out the corresponding variable

data handling

Hi, I have two vectors namely Feed rate and Power consumption. I have filtered out the feed rate ranging between 256 tph-286 tph, but i also want the corresponding values of power consumption to be filtered out.
Thanks

Best Answer

mask = Feed_rate >= 256 & Feed_rate <= 286;
selected_Feed = Feed_rate(mask);
selected_Power = Power(mask);
Related Question