フィルターのクリア

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 ビュー (過去 30 日間)
function [p]= count(a,b,c) ...... complet the rest code
  4 件のコメント
Aakash Deep
Aakash Deep 2018 年 5 月 31 日
There is no need to post a question twice. Thanks

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

回答 (1 件)

KSSV
KSSV 2018 年 5 月 31 日
編集済み: KSSV 2018 年 5 月 31 日
If a is a vector use:
count_positive = nnz(a>0) ;

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by