# [Octave], 24 bytes

<!-- language-all: lang-matlab -->

    @(m,n)diff(fix(0:m/n:m))

The code defines an anonymous function. The output is a numeric array (row vector). When there is no this array contains at least one zero, which is [falsy](https://tio.run/##y08uSSxL/f@/QsFWIdpQwUjBWMEg1porM02hgktBISWzuEBDvaSotCSjUl2TKzWnOBUumpaYUwwWzEv5/x8A) in Octave.

[__Try it online!__][TIO-j512fymu]

[Octave]: https://www.gnu.org/software/octave/
[TIO-j512fymu]: https://tio.run/##y08uSSxL/Z@mYKugp6f330EjVydPMyUzLU0jLbNCw8AqVz/PKldT83@ahpmOsSZXmoY5jDKCUIYQygJEGRromGj@BwA "Octave – Try It Online"

### Explanation

`0:m/n:m` produces an array of `n+1` values from `0` to `m` with step `m/n`. `fix` rounds each entry towards `0`, and `diff` computes consecutive differences.

As an example, here are all intermediate results for `m = 7`, `n = 3`:

    >> 0:m/n:m
    ans =
             0    2.3333    4.6667    7.0000
    
    >> fix(0:m/n:m)
    ans =
         0     2     4     7
    
    >> diff(fix(0:m/n:m))
    ans =
         2     2     3