How do you remove certain text?

I'm currently writing a function and to do it correctly I have to remove everything to the left of a decimal. For instance, if i do x = 5/3 and get 1.6666667 I just would like to be able to get rid if 1 and get .66666667.

 채택된 답변

per isakson
per isakson 2012년 9월 6일

0 개 추천

Try
doc rem
and
rem( 5/3, 1 )

댓글 수: 1

Brian
Brian 2012년 9월 6일
Thank you very much. That worked great.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2012년 9월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by