Answer format of "solve"

4 views (last 30 days)
behnaz
behnaz on 1 Feb 2014
Commented: Youssef Labib on 12 Sep 2020
Hello, I use "Solve" to solve a set of equations, and results are shown in fractional format. Using format command did not even help me to get rid of the fractional format answers. I would thank you if you could please help me.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 1 Feb 2014
sol=solve(your_equation)
double(sol)
  2 Comments
behnaz
behnaz on 1 Feb 2014
YES! It worked, thank you so much.
Youssef Labib
Youssef Labib on 12 Sep 2020
Great, Just what needed. Thanks!

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!