I've combed this forum for hours trying to find a fix for this but can't seem to. On several functions I have written, I keep getting an extra ans as well as my outputs. I've tried several fixes; even throwing semicolons around but nothing has fixed this. Thank you in advance
function [out,logout] = file1(scalar,genvec)if scalar == 0 out = 2else out = 1endif round(genvec) == genvec logout = 1else logout = 0end
Best Answer