필터 지우기
필터 지우기

help with decimal,hexa,etc converter.

조회 수: 5 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by