I am using uq_inversion but uq_inversion self-test failed

Hello, Here I have a problem regarding uq_inversion. I am using Bayesian inversion module. All other components passed the selftest, except uq_inversion.

The error message from uq_selftest_uq_inversion [FAILED] reads:
"*** Data must be single matrix Y or a list of pairs X,Y. ***

After setting up and running the problem, the following commands do not work.

  1. uq_display(myBayesianAnalysis)
    error message:
    Unrecognized function or variable ‘Y’.

Error in uq_histogram

Error in uq_scatterDensity (line 199)
currObj = uq_histogram(currSub, X(:,ii), histArg{:});

Error in uq_display_uq_inversion (line 258)
uq_scatterDensity(…

Error in uq_module/Display

Error in uq_display (line 4)
% uq_createModel, uq_createInput or uq_createAnalysis commands. The

  1. uq_display(myBayesianAnalysis, ‘scatterplot’, ‘all’)
    error message;
    Unrecognized function or variable ‘Y’.

Error in uq_histogram

Error in uq_scatterDensity (line 199)
currObj = uq_histogram(currSub, X(:,ii), histArg{:});

Error in uq_display_uq_inversion (line 258)
uq_scatterDensity(…

Error in uq_module/Display

Error in uq_display (line 6)
%

  1. uq_display(myBayesianAnalysis, ‘trace’, ‘all’)
    Error using plot
    Data must be a single matrix Y or a list of pairs X,Y.

Error in uq_plot

Error in uq_traceplot (line 125)
uq_plot(…

Error in uq_display_uq_inversion (line 388)
uq_traceplot(traceSamples,‘labels’,paramLabelsScatter);

Error in uq_module/Display

Error in uq_display (line 6)
%

Help is appreciated.

Dear Bamidele Ebiwonjumi,

welcome to UQworld.
I had a similar problem recently after my UQLab copy had performed an
automatic update, since some files of the old UQLab version seemed to
remain in the UQLab installation and created these kind of problems.

I suggest to install a fresh copy of UQLab from the UQLab Installation web page, and change to the core sub directory of the new UQLab copy before starting matlab. Maybe you need to check your matlab seach path and remove therein the directories form the old UQLab installation, but this seems to depend on your operating system and your settings in the matlab preferences.

Hope this this helps.

Greetings
Olaf

1 Like

Dear olaf.klein, many thanks. It sure did help. Gracias.