positive number produced from calculation
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
badrul hisham
el 9 de Abr. de 2016
Comentada: badrul hisham
el 10 de Abr. de 2016
hi,i have a calculation that requires the output to be positive value. example: (|0.33-0.42|)=0.9 i tried using abs, but the result is not 0.9. matlab does not recognize the | symbol.im guessing i used abs wrong. can someone please show me how to do this?
2 comentarios
Star Strider
el 9 de Abr. de 2016
The problem is that:
result = abs(0.33-0.42)
result =
0.09
What leads you to believe the correct result is 0.9?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!