tilde use before if condition
조회 수: 55 (최근 30일)
이전 댓글 표시
I was looking at on Matlab code , I could not understand the use of tilde ~ before if condition .
if ~isfield(ArgDS,'mu')
댓글 수: 0
채택된 답변
Star Strider
2016년 11월 12일
The tilde ‘~’ is a logical negation. So the if condition will be true when 'mu' is not a field of the ‘ArgDS’ structure.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!