How can I execute the same program on MATLAB?
Mostrar comentarios más antiguos
I would like to execute the following procedure on MATLAB.
This program is written on Python and succeeded to execute, but I'm troubled with writing it on MATLAB.
Python3.6
# -*- coding: utf-8 -*-
import time
import sys
for i in range(10):
if i == 9:
print("end")
sys.exit()
print("Hello")
time.sleep(1)
Respuesta aceptada
Más respuestas (1)
Dvir Haberman
el 1 de Mayo de 2019
Hi,
Basically, whether if it's linux of windows, you should be able to make it run just by specifying the location of the script with:
system('commandstr')
Hope this was helpful.
1 comentario
horizon
el 4 de Mayo de 2019
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!