Hi
I not sure what I have done wrong basically the above if statement make sure the values in vector is desire number and if this above equation is correct the below is executed to make sure vector is 1×3 but if vector is same dimension it will give an output number if not it should go else. I am pretty sure above equation is correct but is this right way or is there another method?
elseif all([1,3]) == size(v) answer = 1; else answer = 0;
Best Answer