How to convert 27625 to base 10 from base 7 ?

 Respuesta aceptada

Katalin
Katalin el 19 de Jun. de 2015

2 votos

It cannot have number 7 in it if it is in base 7. Otherwise you would do it like this: base2dec('26625',7)

2 comentarios

Abishek V Iyer
Abishek V Iyer el 19 de Jun. de 2015
Thank you very much ... Also what is the difference between having = 'xxxxx' and simply xxxx (without the inverted commas) ?
Katalin
Katalin el 19 de Jun. de 2015
You are welcome! :-) The syntax is: d = base2dec('strn', base); It has to be a string (that's why the ''), as for example higher than 10 base numbers have letters in them e.g. base 16 has abcdef characters in the numbers.

Iniciar sesión para comentar.

Más respuestas (1)

Guillaume
Guillaume el 19 de Jun. de 2015

1 voto

Base 7 uses seven symbols. Traditionally, and in matlab, these are digits 0 to 6.

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Jun. de 2015

Comentada:

el 19 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by