MATLAB: Telnet into locked device through Ethernet

telnet

Hello,
I'm not good with networking so I may misuse some terms. I have a password-protected linux device I need to control via telnet through Matlab. Using 'dos' or 'system' don't allow me to input the username and password. The instrument control box cannot establish a connection as a TCP/IP instrument ('No instrument was detected'). Is there a good walkthrough or set of functions I should be seeing? Spend some time googling and couldn't come up with anything that helped.
Thanks!

Best Answer

As you have the Instrument Control toolbox, you can use tcp(). telnet is TCP port 23.