BUG: If sI had less than 5 values, script was crashing when copying 5 first significant LVs to a smaller matrix.
BUG: If sI had less than 5 values, script was crashing when copying 5 first significant LVs to a smaller matrix.

Now the script either copied the 5 first LVs, or if there are less than 5 LVs, it copies all of them, and plots only these.

fbudin69500/PartialLeastSquareCorrelation