Apologies up front, I'm sure this is a question asked before but I couldn't seem to find the right search terms get the answer. I want to perform the same operation on multiple variables, after checking that each variable meets a certain criteria. So I have:
function Result = myFun(Var1,Var2,Var3)
Var1 = operation(Var1);
Var2 = operation(Var2);
Var3 = operation(Var3);
Result = otherOperation(Var1,Var2,Var3)
Is there a way to shorten this into a loop?