0

I have looked through the examples of this doc:

Type and property representing even integers - MATLAB

I have even copy-pasted Example 1. But it seems I'm getting errors:

>> testtype(2, Type::Even),
testtype(-4, Type::Even),
testtype(8, Type::Even),
testtype(-11114, Type::Even),
testtype(4185296581467695598, Type::Even)

 testtype(2, Type::Even),
                 |
Error: Unexpected MATLAB operator.

The doc can be seen in my Matlab's Help window too. Does anyone know what I'm doing wrong? Thanks in advance.

[I know I can test these in some other way. But I want to know why it is not working.]

ponir
  • 447
  • 7
  • 20
  • It seems it has to do something with MuPAD. Whatever that means. – ponir Feb 24 '13 at 16:00
  • 1
    Did you copy/paste the example to MuPAD or to the Matlab command window? See [here](http://www.mathworks.nl/help/symbolic/mupad_ug/first-steps-in-mupad.html) – Junuxx Feb 24 '13 at 16:26

0 Answers0