help with decimal,hexa,etc converter.

2 ビュー (過去 30 日間)
Portgas Ace
Portgas Ace 2012 年 9 月 29 日
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 件のコメント
Jan
Jan 2012 年 9 月 29 日
The question is not clear. I cannot imagine what "return to a line in a program" could mean.

サインインしてコメントする。

回答 (1 件)

Razvan
Razvan 2012 年 9 月 29 日
編集済み: Razvan 2012 年 9 月 29 日
str = dec2base(yourBase10Number, newBase)
  4 件のコメント
Portgas Ace
Portgas Ace 2012 年 9 月 29 日
its not working. :(
Jan
Jan 2012 年 9 月 29 日
編集済み: Jan 2012 年 9 月 29 日
"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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by