[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Histc under octave
From: |
Mike Miller |
Subject: |
Re: Histc under octave |
Date: |
Thu, 27 Apr 2017 08:22:09 -0700 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Thu, Apr 27, 2017 at 00:12:46 -0700, lucas21 wrote:
> Here is the error that I got with the original file:
>
> error: histc: EDGES must not be empty
> error: called from
> histc at line 57 column 5
> mc3dBASF_GW2 at line 578 column 26
> MC_fluo_Main3d_BASF_GW_zemax_base_de_travail at line 301 column 194
> histc at line 57 column 5
> mc3dBASF_GW2 at line 578 column 26
> MC_fluo_Main3d_BASF_GW_zemax_base_de_travail at line 301 column 194
> mc3dBASF_GW2 at line 9 column 7
> stopped in C:\Octave\OCTAVE~1.1\share\octave\4.2.1\m\statistics\base\histc.m
> at line 57
> 57: error ("histc: EDGES must not be empty");
>
>
> I dont really understand the "EDGES" must not be empty". Am I using it
> wrong?
> Here is the line that use this fonction:
>
> lambdaIdx0 = lambdaIdx(photons(:,2) == 3);
> lambdaIdx0un = unique(lambdaIdx0);
> MP2(lambdaIdx0un) = histc(lambdaIdx0,lambdaIdx0un);
The error message is saying that the second argument is empty. Maybe no
values of photons are exactly equal to 3?
--
mike