~= means?

236 views (last 30 days)
Superb
Superb on 11 May 2012
Edited: Walter Roberson on 5 Jun 2023
~= means what? Is that means not equal to? Or it can have other meaning too? Thanks :)
  1 Comment
Evelyn
Evelyn on 10 Mar 2023
Edited: Walter Roberson on 5 Jun 2023
Yes, "~=" commonly means "not equal to" in many programming languages and mathematical notation. It is often used to compare two values or variables to see if they are not equal [SL: removed URL that was unrelated to the question].However, the exact meaning of "~=" may vary depending on the context and programming language.

Sign in to comment.

Accepted Answer

Wayne King
Wayne King on 11 May 2012
It means not equal to as you say. It doesn't have any other meaning in MATLAB. The ~ by itself has meaning. It can be used to not return certain outputs from a function.
  2 Comments
Burkhard Blaich
Burkhard Blaich on 4 Nov 2021
thanks

Sign in to comment.

More Answers (1)

Ali Rashid
Ali Rashid on 10 Mar 2023
means values that are not equal to the mean, and this command usually comes after if

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!