Ncorr post Fail help

Hello Friends,
I apologize in advance if I skip some protocol to post my problem, but I am new to matlab and the forum. After long attempts to make Ncorr_Post run, I decided to consult by this means.
To summarize, I have already processed images with the add on Ncorr, I managed to realize that even the results obtained were saved correctly, generating some workspace with the field of displacement and deformations for each image that allow plotting graphically as seen in the ncorr generally. But, what I am really interested in is not the displacement field itself, but to extract the linear displacement from one point to another (that is, a column with the displacement data of the material, to be able to compare with the displacement delivered by the testing machine), the Ncorr_Post extension does exactly this by the name of "virtual extensometer". The problem is that when I load the data from the Ncorr and the .mat file that it generates, it gives me an error, if I load the .mat file the problem is to recognize the dimension of the array and gives the following:
Index exceeds matrix dimensions.
Error in calculateOtherQuantities (line 3)
for i = 1:plottingData(1).nFiles
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in ncorr_post>pushbutton9_Callback (line 527)
run calculateOtherQuantities
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post('pushbutton9_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
On the other hand, when I load the data from the Ncorr, it seems that it does not communicate with it, saying the following:
Error using evalin
Undefined function or variable 'handles_ncorr'.
Error in getNcorrData_v1_2 (line 16)
handles_ncorr = evalin('base','handles_ncorr');
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in ncorr_post>pushbutton8_Callback (line 125)
run getNcorrData_v1_2
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in ncorr_post (line 45)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ncorr_post('pushbutton8_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
I don't know if I am using Ncorr_Post wrong, but I have already tried with all the versions, even Ncorr. The only thing that I had to do was to try other versions of matlab, but I don't know if this will work.
I hope you can help me to solve this, I would be deeply grateful.
Greetings and thanks in advance

7 Comments

Hi there,
I'm experiencing the same exact problem as you when trying to get ncorr_post to work, I was just wondering if you ever got around to solving this issue?
Many thanks in advance :)
Hai everyone
I am also facing the same issue, by any chance have you resolved the issue?
Thanks in advance
Same problem here :(
I am also facing the same problem. If anyone can resolve it, please share it. I am also trying to resolve.
Jacek
Jacek on 27 Oct 2024
For the second problem (line 45 error) I found out that starting ncorr_post while staying in the ncorr_post folder helps. I think there is some issue for searching folders added to the path, but couldn't identify it myself. What I'm doing now is just I'm jumping to ncorr_post folder when I start ncorr_post and then come back to th efolder where data is.
Ncorr_post is a third-party tool. One of the places it is available is from https://mech.fsv.cvut.cz/~nezerka/DIC/downloads.htm
It is likely that the problem is caused by ncorr_post not being able to find any plotting files -- or possibly by the user canceling in a file selection menu.

Sign in to comment.

Answers (1)

Umar
Umar on 30 Jun 2024

0 votes

Dear All,
To address the "Index exceeds matrix dimensions" error, check the dimensions of the arrays being used in the calculateOtherQuantities function. Ensure that the array indexing is within bounds to prevent this error.
For the "Undefined function or variable 'handles_ncorr'" error, verify that the variable handles_ncorr is properly defined or accessible within the scope of the function getNcorrData_v1_2. If it is a global variable, ensure it is declared as such.
Hope this will help resolve your problem.

Categories

Products

Release

R2017b

Tags

Asked:

on 28 Oct 2020

Commented:

on 28 Oct 2024

Community Treasure Hunt

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

Start Hunting!