Effacer les filtres
Effacer les filtres

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 vue (au cours des 30 derniers jours)
plz help

Réponse acceptée

KSSV
KSSV le 20 Sep 2018
N = 9 ;
x = round(mean(1:N))

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by