0
어떻게해야합니까? 내가 1을 확인했다면 나는 합계의 길이를 보았을 지 모르지만 모든 요소가 루핑없이 - 무한대인지 확인하는 방법을 모르겠습니다.Matlab은 모든 벡터 요소가 == -inf인지 확인합니다
어떻게해야합니까? 내가 1을 확인했다면 나는 합계의 길이를 보았을 지 모르지만 모든 요소가 루핑없이 - 무한대인지 확인하는 방법을 모르겠습니다.Matlab은 모든 벡터 요소가 == -inf인지 확인합니다
사용 all
doc
v = [-inf, -inf, -inf, -inf]
all(v==-inf)
1
v = [-inf, -inf, 1]
all(v==-inf)
0