필터 지우기
필터 지우기

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 (최근 30일)
plz help

채택된 답변

KSSV
KSSV 2018년 9월 20일
N = 9 ;
x = round(mean(1:N))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by