Ver código fonte

make sure that mic_array_sim_dfr is treated by Octave as a script file and not a function file

Fernando Pablo Lopez-Lezcano 10 anos atrás
pai
commit
6db67e55a1
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      mic_array_sim_dfr.m

+ 3 - 0
mic_array_sim_dfr.m

@@ -3,6 +3,9 @@
 %     28-May-2012, revised 22-Jun-2012, 12-Jan-2013
 %     tested with MATLAB R2012b and GNU Octave, version 3.2.4
 
+% make sure octave treats this as a script file
+1;
+
 %% Main function for simulator
 function [dfr, ffr] = mic_array_sim_dfr( M, output_file )
     % MIC_ARRAY_SIM_DFR simulate diffuse field response pf mic array M