Wednesday, February 2, 2011

tilde operator in Matlab?

hello,

can you explain to me what the tilde (~) operator does in Matlab?

ex #1: if ~isempty(z)

ex #2: if rem(n,2) ~= 0

thanks
M

2 comments:

  1. tilde means "not", e.g. "~=" means "not equal"

    ReplyDelete
  2. What Tilde means in this code:
    [~,i]=max(alpha(minPitch:end));
    I got some errors.

    ReplyDelete

Note: Only a member of this blog may post a comment.