Effacer les filtres
Effacer les filtres

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

Réponses (1)

KSSV
KSSV le 29 Nov 2021
  1. Read about logicals
  2. Read about indexing
  3. Read about >, <. >=, <= i.e. operators
  4. Read about pie
  5 commentaires
KSSV
KSSV le 29 Nov 2021
A = rand(1,10) ;
idx = A > 0.6 ;
A(idx)
ans = 1×3
0.6824 0.6753 0.7983

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by