justinblaber / ncorr_2D_matlab

2D Digital Image Correlation Matlab Software
https://www.ncorr.com
BSD 3-Clause "New" or "Revised" License
138 stars 67 forks source link

Octave compatibility? #5

Open jpdeleon opened 6 years ago

jpdeleon commented 6 years ago

Can this theoretically work in Octave? This might be good to boost the utility of your program in the open software universe.

I tried to run this in Octave by following the manual, but I encountered errors.

handles_ncorr = ncorr; parse error near line 3356 of file /home/jerome/github/ncorr_2D_matlab/ncorr.m

syntax error

function [handle_name,outstate] = gui_sethandle(pos_parent)

justinblaber commented 6 years ago

I haven't tested this in octave. However, some googling shows that any incompatibility between octave and matlab is a bug? So if it doesn't work with octave that must be an issue with octave itself.

Whats strange about that syntax error is it looks like completely standard and normal matlab code.. So I don't really know what the issue is there.

CsatiZoltan commented 4 years ago

There are differences between MATLAB and Octave. Similarly to C and C++, neither is a subset of the other. In my experience, porting complex MATLAB codes (especially including MEX functions and GUIs) to Octave is very painful.