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.

 Respuesta aceptada

per isakson
per isakson el 6 de Sept. de 2012

0 votos

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

1 comentario

Brian
Brian el 6 de Sept. de 2012
Thank you very much. That worked great.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Sept. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by