Info

This question is closed. Reopen it to edit or answer.

What Are The Common Causes of Wild Fluctuations In An Array of Data?

1 view (last 30 days)
While I cannot post the code, I hopefully should be able to describe the issue in enough detail.
I have a program that works fine for the vast majority of values. I start to run into an issue for a small subset of initial values. Another troubleshooting program plots a visual from a matrix of values, and in a distinct area, the program looks like it is breaking down. Two column arrays was taken from this matrix, one 'good' array which does not contain the troublesome data, and a 'bad' array which does.
In the 'bad' region of the 'bad' array, my numbers start to fluctuate wildly from positive, negative, and mixed positive-negative complex values for nearly every subsequent point, one after the other.
I would like any advice, if it can be given, why such behavior might occur in the hopes that I may use this knowledge to figure out why such behavior is occurring in my program. Thanks.
  2 Comments
Jan
Jan on 12 Jun 2018
Edited: Jan on 12 Jun 2018
This can be answered only, if you post the corresponding code.
The common case is a system, which unstable either inherently or due to an unstable numerical implementation.
BM
BM on 12 Jun 2018
Edited: BM on 12 Jun 2018
Hi Jan, can I ask what you mean by an unstable numerical implementation? Could this be a case of me pushing the accuracy limits of MATLAB? I certainly do obtain values, but so far even implementing some attempts to fix the issue using vpa have not yielded success.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!