Effacer les filtres
Effacer les filtres

Hello I need to write a function that the file name is count(a,b,c) to count how many positive number . what i have to write?

2 vues (au cours des 30 derniers jours)
function [p]= count(a,b,c) ...... complet the rest code
  4 commentaires

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 31 Mai 2018
Modifié(e) : KSSV le 31 Mai 2018
If a is a vector use:
count_positive = nnz(a>0) ;

Catégories

En savoir plus sur Debugging and Analysis dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by