Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is -0.0 in matlab?

Tags:

matlab

I have been working on finding a parabola with three points by using the determinant method. The coefficients that are returned are sometimes

-0.0000

What does this mean? Why is there a negative sign and what does it signify?

like image 478
t0mkaka Avatar asked Jul 25 '13 11:07

t0mkaka


People also ask

What is %% used for in MATLAB?

Description: The percent sign is most commonly used to indicate nonexecutable text within the body of a program. This text is normally used to include comments in your code. Some functions also interpret the percent sign as a conversion specifier.

What does '~' mean in MATLAB?

Direct link to this answer https://www.mathworks.com/matlabcentral/answers/204-what-does-a-mean-in-the-following-code#answer_229. Helpful (9) Helpful (9) ~ means 'not' DOC link.

What does ~= mean in MATLAB?

A ~= B returns a logical array with elements set to logical 1 ( true ) where arrays A and B are not equal; otherwise, the element is logical 0 ( false ). The test compares both real and imaginary parts of numeric arrays.

What are the special characters in MATLAB?

(MATLAB Functions) Special Characters [ ] ( ) {} = ' . ... , ; % ! Brackets are used to form vectors and matrices. [6.9 9.64 sqrt(-1)] is a vector with three elements separated by blanks.


1 Answers

Try format long g to see more significant digits. The number is probably very slightly negative.

like image 124
am304 Avatar answered Oct 03 '22 16:10

am304