Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
decimal 2 fraction

Subject: decimal 2 fraction

From: lesodk Zokla

Date: 21 Apr, 2009 22:00:20

Message: 1 of 2

does anyone know, if i easy can display a decimal e.g 0,333333_ as 1/3 with a command?

Thanks

Subject: decimal 2 fraction

From: Roger Stafford

Date: 22 Apr, 2009 01:19:02

Message: 2 of 2

"lesodk Zokla" <lesodk@gmail.com> wrote in message <gslflk$mb2$1@fred.mathworks.com>...
> does anyone know, if i easy can display a decimal e.g 0,333333_ as 1/3 with a command?
>
> Thanks

  Matlab's 'rat' and 'rats' functions should do what you are asking. Check out their documentation. They can be used in a number of ways.

Roger Stafford

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us