Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
plz help

Respuesta aceptada

KSSV
KSSV el 20 de Sept. de 2018
N = 9 ;
x = round(mean(1:N))

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by