How can I perform modulus operation (mod)?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abdulatif Alabdulatif
el 7 de Ag. de 2014
Comentada: Abdulatif Alabdulatif
el 7 de Ag. de 2014
Hi all,
I am trying to use build-in functions in Matlab to help me to convert my project from decimal system to binary system. It is include addition, subtraction, multiplication and division as well. Also I am looking for a function that can produce the result of (mod) operations (remainder)such as:
8 mod 10 = 8
-3 mod 10 = 7
But again, I want to perform this in binary system.
Can any one help me in this?
Thank you!
0 comentarios
Respuestas (2)
Iain
el 7 de Ag. de 2014
All the numbers in matlab are represented as binary numbers. Results are displayed as strings.
- 1 has 11 different built in representations, which in hex are:
01, 0001, 00000001, 0000000000000001 (logical, signed & unsigned 8, 16, 32, & 64 bit integers) 000000000000F03F (double) and 0000083F (single).
What do you really want to do?
1 comentario
Ver también
Categorías
Más información sobre Symbolic Math Toolbox 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!