Borrar filtros
Borrar filtros

What does ~ stand for in the following example?

2 visualizaciones (últimos 30 días)
Nicoleta
Nicoleta el 1 de En. de 2016
Comentada: Star Strider el 9 de En. de 2016
What does this piece of code mean? [~,~,P] = size(I);

Respuesta aceptada

Star Strider
Star Strider el 1 de En. de 2016
The ‘~’ in that context tells the function to not return that particular output. Apparently ‘I’ is a 3D array, and the person who wrote that only wanted to know the number of ‘pages’ (3rd dimension) of it, not the number of rows or columns, the first and second dimensions respectively.
  2 comentarios
Nicoleta
Nicoleta el 9 de En. de 2016
thx
Star Strider
Star Strider el 9 de En. de 2016
My pleasure.
If my Answer solved your problem, pleas Accept it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by