Write a program ,using function to find the median for the values x ,where x=[8 1 2 9 5]. ‏

2 ビュー (過去 30 日間)
nour satar
nour satar 2020 年 9 月 3 日
コメント済み: nour satar 2020 年 9 月 3 日
Write a program ,using function to find the median for the values x ,where x=[8 1 2 9 5]. ‏
  2 件のコメント
KSSV
KSSV 2020 年 9 月 3 日
Homework....what have you tried?
nour satar
nour satar 2020 年 9 月 3 日
x=[8 1 2 9 5]
y= median (x)
solve
x= 8 1 2 9 5
x= sort (x)
x=1 2 5 8 9
y= 5

サインインしてコメントする。

回答 (1 件)

Felipe Bayona
Felipe Bayona 2020 年 9 月 3 日
This forums are not to solve your homeworks, are to solve problems and questions when using MATLAB
For that read the documentation about functions in MATLAB
and look for a good definition of what is a median value.
MATLAB has its own implementation for that function, but it seems your homework is to do it by yourself
Good luck

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by