3 Replies Latest reply on Feb 24, 2020 8:27 PM by RodolfoG_11

    how to write code to do array manipulations

    RoBu_286116

      We need to generate some complex math curves. Inotherwords. . . in normal ansi c, one can, for example, just say a=1:.1:5   and then say   b=exp(a).   I don't know how to do that in PSOC's code section.   This can't be that difficult.    I can write this in matlab in an instant.

       

      The eventual goal is to generate an error curve, which is a type of sigmoid curve.   This also involves dividing two math functions, in an element by element fashion. This is easily done in normal C code by saying:  result=array1 (with a dot after it), division sign, and then array 2

       

      Anybody out there got any experience doing these sort of things ?    

       

      Thanks. Bob