Skip to content

Commit

Permalink
octave >= 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 14, 2018
1 parent c9647d4 commit dba3483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -25,7 +25,7 @@ if(PYTHONINTERP_FOUND)
endif()

find_package(Octave)
if (OCTAVE_EXECUTABLE)
if (OCTAVE_MAJOR_VERSION GREATER_EQUAL 4)
add_test(NAME MatlabOctave COMMAND octave-cli -q Test.m
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/tests)
endif()
Expand Down
7 changes: 2 additions & 5 deletions tests/Test.m
Expand Up @@ -69,14 +69,11 @@ function test_transforms(angleUnit,lat,lon,lat1,lon1,az,el)
end % function

disp('GNU Octave / Matlab code OK')
end

end % function


function rad = deg2rad(deg)
% for Octave < 4.0
rad = deg * (pi / 180);

end

% Copyright (c) 2014-2018 Michael Hirsch, Ph.D.
%
Expand Down

0 comments on commit dba3483

Please sign in to comment.