winopen command in linux

6 次查看(过去 30 天)
Ham Man
Ham Man 2020-11-15
编辑: Ameer Hamza 2020-11-15
what is the alternative for 'winopen' command in Linux?

回答(1 个)

Ameer Hamza
Ameer Hamza 2020-11-15
If you can open it from the command line, then you can use system() function: https://www.mathworks.com/help/releases/R2020b/matlab/ref/system.html to open it programmatically.
  2 个评论
Ham Man
Ham Man 2020-11-15
Thank you so much Ameer!
I'm using .avi video format in windows programing. Do you know what format should I use in Linux?
This is not working in Linux:
system('open myvideo.avi');
Ameer Hamza
Ameer Hamza 2020-11-15
编辑:Ameer Hamza 2020-11-15
I currently don't have access to a linux machine but on macOS, both of these work
system('/Applications/VLC.app/Contents/MacOS/VLC /path_to_video_file &')
% or
system('/usr/bin/open /path_to_video_file &')
Do you have a command-line tool 'open' installed on your Linux? If yes, give the complete path to the executable, system() does not load the $PATH. In case you don't have an 'open' tool, you may find this helpful: https://stackoverflow.com/questions/264395/linux-equivalent-of-the-mac-os-x-open-command.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by