Answer format of "solve"

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.

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 1 Fév 2014

4 votes

sol=solve(your_equation)
double(sol)

2 commentaires

behnaz
behnaz le 1 Fév 2014
YES! It worked, thank you so much.
Youssef Labib
Youssef Labib le 12 Sep 2020
Great, Just what needed. Thanks!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Question posée :

le 1 Fév 2014

Commenté :

le 12 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by