MATLAB: Write a function halfway(n) that given an odd integer n as input, returns the integer that’s halfway between 1 and n. >> halfway(9) ans = 5

MATLAB

plz help

Best Answer

N = 9 ;
x = round(mean(1:N))
Related Question