Azzera filtri
Azzera filtri

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 visualizzazione (ultimi 30 giorni)
plz help

Risposta accettata

KSSV
KSSV il 20 Set 2018
N = 9 ;
x = round(mean(1:N))

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by