Could someone explain below part of code please ? I do not understand the first part [~,b]
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Bo Sarah
el 4 de Oct. de 2017
Comentada: Matt J
el 4 de Oct. de 2017
[~,b] = min(abs(RealEL1));
0 comentarios
Respuesta aceptada
Matt J
el 4 de Oct. de 2017
Editada: Matt J
el 4 de Oct. de 2017
These are the outputs of the min() function. b is the location of the minimum value. ~ means that the first output argument, the minimum value itself, is not to be assigned to any variable.
2 comentarios
Matt J
el 4 de Oct. de 2017
You're welcome, but if your question has been answered, please click "Accept".
Más respuestas (1)
Guillaume
el 4 de Oct. de 2017
The ~ ignores the first output of min as you're only interested in the index of the minimum, not its actual value.
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!