Hi,
Has someone managed to get this to work with Octave?
First I run into the issue that clamp is not defined, so I defined it like this:
function c = clamp(v,l,h)
c = min(max(v,l),h);
end
Now I run into another issue:
.../hdrvdp-3.0.6/examples$ octave impairment_detection_sdr.m > impairment_detection_sdr-output.txt
warning: function /mnt/h/work/hdrvdp-3.0.6/examples/../matlabPyrTools_1.4_fixed/factorial.m shadows a core library function
warning: called from
hdrvdp3 at line 309 column 5
impairment_detection_sdr at line 50 column 15
warning: function /mnt/h/work/hdrvdp-3.0.6/examples/../matlabPyrTools_1.4_fixed/shift.m shadows a core library function
warning: called from
hdrvdp3 at line 309 column 5
impairment_detection_sdr at line 50 column 15
warning: dlmread: '/mnt/h/work/hdrvdp-3.0.6/examples/../data/emission_spectra_led-lcd-srgb.csv' found by searching load path
warning: called from
load_spectral_resp at line 10 column 3
hdrvdp3 at line 419 column 18
impairment_detection_sdr at line 50 column 15
parse error near line 5 of file /mnt/h/work/hdrvdp-3.0.6/examples/../utils/hdrvdp_multscale.m
external methods are only allowed in @-folders
>>> ms = decompose( ms, I );
^
error: called from
hdrvdp3 at line 473 column 31
impairment_detection_sdr at line 50 column 15
.../hdrvdp-3.0.6/examples$
Since I have no clue of Matlab or Octave I am kind of stuck.
Thanks & Regards,
Harald