close all; clear; clc

x = [1 2 4; 3 6 1; 5 7 9]

y = find(x > 5)

x(y)

[row, col] = find(x > 5)

x > 5

x(x > 5)