Raspberry Pi System Command not working
显示 更早的评论
Hi all,
Since I have Matlab Home, I established a connection to my raspi 2, model B with the common commands in the Matlab documentation. Everything work perfectly, besides the "System"-command, where to define a string in Matlab an send it to the raspberry, and getting back an answer.
I only tried the commonly used command "sudo shutdown -h now" defind as follows in the Matlab command line:
Answer=system(myRpiObject,'shutdown -h now','sudo')
I get back "undefined command"
Using the openShell-Command and performing the shutdown is working without issues.
I'm using Matlab 2016 with the Matlab raspberrypi support package and start it with admin privileges.
Regards, Daniel
2 个评论
Walter Roberson
2016-4-27
What behaviour are you observing? What is being returned in Answer?
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!