This function helps to show distinguishable several figures (e.g. generated through a loop or obtained from several runs) in one figure.
in each call, it fades the current content of the figure by a percentage and add the the contents to the figure.
As result, Always the newer data have more contrast comparing to the older ones.
You can consider to use different colours for the figures to makes them even more distinguishable.
A simple example is also included.
Please leave your feedback.
Hamid Radmard Rahmani (2019). FadeIT (https://www.mathworks.com/matlabcentral/fileexchange/69816-fadeit), MATLAB Central File Exchange. Retrieved .
This was copied without attribution from an answer on StackOverflow (where this author also posted FadeIT as a "new" answer).
https://stackoverflow.com/a/53592456/3978545. It also "steals" the 'patchline' function with just an "inspired by" attribution on this page
I tried using this - fadeIT(1,50,2) - and I get this error:
Attempt to reference field of non-structure array.
Error in fadeIT (line 34)
Xdat = [Xdat; hline2.XData];
titile and the text
More descriptions are added.
Some Descriptions are added.