Ncorr post Fail help
25 views (last 30 days)
Show older comments
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
Walter Roberson
on 28 Oct 2024
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
Walter Roberson
on 28 Oct 2024
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.
Answers (1)
Umar
on 30 Jun 2024
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.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!