malnuaim / wafo

Automatically exported from code.google.com/p/wafo
0 stars 0 forks source link

Function reconstruct doesn't work for any wave series #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I run the reconstruct.m to reconstruct wave series but it doesn't work for 
all the series.
2.
3.

What is the expected output? What do you see instead?

The errors I get are the following:

??? Index exceeds matrix dimensions.

Error in ==> rndnormnd at 94
    T=(U(:,1:L)*sqrt(S(1:L,1:L))*V(:,1:L)'); %squareroot of S

Error in ==> cov2csdat at 288
      sample((nprev+1):(nprev+ns),:) =...

Error in ==> reconstruct at 210
  [samp ,mu1o, mu1oStd]  = cov2csdat(xnt(:,2),rwin,1,method,inds); % old simcgauss

Error in ==> recon at 12
y=reconstruct(xx1,inds,'nonlinear');        %reconstruct series

What version of the product are you using? On what operating system?

I use wafo 2.5. 
I run it in MATLAB 7.1.0.246 (R14) Service pack 3.

Please provide any additional information below.

I provide two surface elevation series together with a small script I use to 
run the findoutliers.m and reconstruct.m.
It works for ..._97.txt but not for ..._98.txt.

Thank you in advance

Original issue reported on code.google.com by nmaravel...@gmail.com on 17 Oct 2013 at 9:29

Attachments: