# Why am I getting two different plots for the exact same matrix?

3 views (last 30 days)

Show older comments

##### 5 Comments

Walter Roberson
on 9 Aug 2018

>> max(BFF(:)-SF(:))

ans =

0.00204231

Perhaps you are encountering noticeable round-off error. If you entered data from a printed table, the table might not have shown all of the decimal places the data really had, and that can result in calculations not coming out as you expect them to.

### Answers (1)

Thorsten
on 8 Aug 2018

Maybe it helps if you transpose the matrix to get it right.

##### 4 Comments

Walter Roberson
on 10 Aug 2018

As outsiders, we have no reason to expect that the two matrices should be the same.

>> max(BFF(:))

ans =

0.00204256

>> max(SF(:))

ans =

2.5e-07

>> min(BFF(:))

ans =

0

>> min(SF(:))

ans =

0

You can see from these values that it is pretty certain that there will be some point where the difference between the two exceeds 0.002, or roughly a factor of 8000 compared to the smaller matrix.

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!