필터 지우기
필터 지우기

how to compare positive and negative value in matlab

조회 수: 5 (최근 30일)
SHOBA MOHAN
SHOBA MOHAN 2017년 11월 23일
편집: Stephen23 2017년 11월 23일
I wish to compare swt component with its skewness, swt components having both positive and negative no.s whereas skew value is negative. How can i compare it also i have to assign swt component value to 1 if its greater than skew and zero if its less than skew. I have used this syntax but didnt workout as mentioned above as,hs,vs,ds are swt component whereas sas,shs,svs, and sds are the skew value. thanks in advance
f= (as>=sas);
g=(hs>=shs);
h=(vs>=svs);
i=(ds>=sds);
  댓글 수: 3
SHOBA MOHAN
SHOBA MOHAN 2017년 11월 23일
Yes it has worked well. i answered back,it is working, but someone named as 'Stephen Cobeldick' deleted it. I dont know why?
Stephen23
Stephen23 2017년 11월 23일
편집: Stephen23 2017년 11월 23일
@SHOBA MOHAN: because that one sentence that you wrote was not clearly an answer, nor did it include any information that seemed relevant to the question.
You are welcome to add an answer if it resolves the question.
Please explain what you mean by "I have used this syntax but didnt workout": what didn't work? What were you expecting to happen? What actually happened?
Note that the parentheses in your code are superfluous.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Fundamentals에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by