How can I use the unix command 'ln' in matlab to create an symbolic link?

2 vues (au cours des 30 derniers jours)
How can I use the unix command 'ln' in matlab to create an symbolic link?
I would like to put this command into my script: ln -s /dev/ttyACM0 /dev/ttyS101
Any help is greatly appreciated.
- Kristine

Réponse acceptée

Walter Roberson
Walter Roberson le 1 Mar 2016
system('ln -s /dev/ttyACM0 /dev/ttyS101')
  2 commentaires
Kristine
Kristine le 1 Mar 2016
Awesome, I tried using unix at first. Thank you!
Walter Roberson
Walter Roberson le 1 Mar 2016
unix() instead of system() should have worked as well.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by