フィルターのクリア

Imagine a vector of g = (5 6 3 7 5 4 4 9 8 5 7 8 9 9 5 4 6 8 8 7 6 7 7 7 8 8). And am asked to find the number of data greater than 5. How will I do this. Part b. How will

1 回表示 (過去 30 日間)
Imagine a vector of g = (5 6 3 7 5 4 4 9 8 5 7 8 9 9 5 4 6 8 8 7 6 7 7 7 8 8). And am asked to find the number of data greater than 5. How will I do this. Part b. How will I plot a pie chart of this over 100perc3nt
  1 件のコメント
KSSV
KSSV 2021 年 11 月 29 日
編集済み: KSSV 2021 年 11 月 29 日
What have you tried on this very simple question?

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

回答 (1 件)

KSSV
KSSV 2021 年 11 月 29 日
  1. Read about logicals
  2. Read about indexing
  3. Read about >, <. >=, <= i.e. operators
  4. Read about pie
  5 件のコメント
KSSV
KSSV 2021 年 11 月 29 日
A = rand(1,10) ;
idx = A > 0.6 ;
A(idx)
ans = 1×3
0.6824 0.6753 0.7983

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

カテゴリ

Help Center および File ExchangePie Charts についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by