필터 지우기
필터 지우기

How do i check a value is negative and make it into a condition?

조회 수: 17 (최근 30일)
telmo egues
telmo egues 2018년 7월 26일
답변: Ramesh Kumar 2020년 8월 16일
Hi, I want to compare a value introduces in a matrix and depending on its' sign, make a condition. Is there any function or code to check if a value is negative or not?
Thanks in advance

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 7월 26일
편집: KALYAN ACHARJYA 2018년 7월 26일
matrix(matrix<0)

추가 답변 (1개)

Ramesh Kumar
Ramesh Kumar 2020년 8월 16일
Hi

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by