Arduino Leonardo + Matlab, possible communication?

Hello Arduino'friend!

I would to use Arduino Leonardo with matlab. I have installed Arduino package for Matlab and Simulink and I have a Arduino Leonardo.

I try to write in command window

a=arduino('COMport')

but I get an error,

a=arduino('COM23')
Undefined function 'arduino' for input arguments of type 'char'.

I have failed in the installation or Arduino leonardo isn't compatible with Matlab?

Solved, I haven't correctly installed arduino for matlab but only for simulink.

How did you do that? Can you post the code?

puntodtj can you post your code or procedure?
I will love to see it, thank you :slight_smile: