Home > other >  Compile the s function
Compile the s function

Time:12-02

Want to build a function in the matlab, and the main content is as follows: when the input variable V greater than 205, output c=1, until the input variables is less than 190, output c into 1; After output c continuous output 1, until the input variable is larger than 205 V, output to 1 c, in circulation,
The function c=FCN (V)
If (V<205 & amp; & V<190)
C=1;
Elseif (V==205)
C=1;
The else
C=1;
End
Write their own reach effect, the hope can get help
  • Related