Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
function [p]= count(a,b,c) ...... complet the rest code
  4 comentarios

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 31 de Mayo de 2018
Editada: KSSV el 31 de Mayo de 2018
If a is a vector use:
count_positive = nnz(a>0) ;

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by