another user defined function question
古いコメントを表示
Write an user-defined function to calculate the mean value and the maximum value of the following vector. Write another function to count how many ‘0’s the vector has x = [0, 103, 0, 105, 104, 0, 99, 100, 0, 102, 0, 107, 105] need help with this one also. it jsut userdefined functions that i don't get.
採用された回答
その他の回答 (1 件)
x = [0, 103, 0, 105, 104, 0, 99, 100, 0, 102, 0, 107, 105] ;
iwant = nnz(x==0)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!