필터 지우기
필터 지우기

Counting elements of a matrix/array

조회 수: 3 (최근 30일)
Alex Flores
Alex Flores 2017년 4월 22일
편집: Alex Flores 2017년 4월 22일
I have a 1000x1000 array of uniformly distributed random numbers between -1 to 1. I need to come up with a way to count how many negative numbers are generated are in the array without using loops. I was able to do it with loops, but I am struggling with trying to figure out how to do it without loops. any answer is very appreciated :)

채택된 답변

KSSV
KSSV 2017년 4월 22일
doc numel

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by