MATLAB Answers

0

help with decimal,hexa,etc converter.

Asked by Portgas Ace on 29 Sep 2012
for example i have a syntax for base 10 to base n. and i also have a syntax of base m to base 10.
and then what i was given base 2 to base 3 to converter. so the procedure is i need to convert first base 2 to base 10(using base m to base 10 syntax). after that, how would i make my program enter the syntax of base 10 to base n? its like returning to a line in the program.
BTW, i cant use built in converters in matlab.

  1 Comment

Jan
on 29 Sep 2012
The question is not clear. I cannot imagine what "return to a line in a program" could mean.

Sign in to comment.

Tags

1 Answer

Answer by Razvan
on 29 Sep 2012
Edited by Razvan
on 29 Sep 2012

str = dec2base(yourBase10Number, newBase)

  4 Comments

Show 1 older comment
Razvan
on 29 Sep 2012
its not working. :(
Jan
on 29 Sep 2012
"It is not working" is a very lean description of the occurring problems. If you explain more details, the chance to get help is higher.
I'm convinced, that you do not need an "execute line n" command to implement the desired function.

Sign in to comment.