I am having trouble on a project involving matrices.
An example with simplified but similar code:
Matrix = [0 1 4; 4 1 3];
for x = 1:10
if x + y == 5
My goal is to have y be ANY value in the original matrix, so the if statement is true if x + ANY Matrix Value is equal to 5.
Is this possible without using an extra for loop?