Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does ~= mean in MATLAB?

Tags:

syntax

matlab

I've never seen this operator yet.

like image 695
Gtker Avatar asked Apr 17 '10 13:04

Gtker


People also ask

What does it mean ~= in MATLAB?

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.

What does ~= mean in Simulink?

== — True if the first input is equal to the second input. ~= — True if the first input is not equal to the second input. < — True if the first input is less than the second input. <= — True if the first input is less than or equal to the second input.

What does @function mean in MATLAB?

It consists of a single MATLAB expression and any number of input and output arguments. You can define an anonymous function right at the MATLAB command line or within a function or script. This way you can create simple functions without having to create a file for them.

What does Y (: 1 mean in MATLAB?

If you define a bidimensional array y, and you want to access all its elements on the first column: y(:,1) will do it. If you want to access to all the elements of the fift row: y(5,:) is the syntax you have to use. The colon means: take all the elements along the specified dimension.


1 Answers

This is the not equal to operator.

In Java and C++ you may have seen it as !=

Hope that helps!

like image 161
binarycreations Avatar answered Nov 15 '22 05:11

binarycreations