Running exe files in Linux
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
SHREENATH KRISHNAMURTHY
el 6 de Sept. de 2016
Editada: Walter Roberson
el 6 de Sept. de 2016
How do i Run the following command in Linux
if 0,
system(strcat('sim/CySim_solver sim/CySim', ' > out'));
else
system(strcat('sim\CySim_solver.exe sim\CySim', ' > out'));
end;
0 comentarios
Respuestas (2)
Thorsten
el 6 de Sept. de 2016
Try
system(strcat('sim/CySim_solver sim/CySim', ' > out'))
1 comentario
Thorsten
el 6 de Sept. de 2016
Editada: Thorsten
el 6 de Sept. de 2016
ou cannot run the .exe in Linux, at least not simply. Do you have the Linux executable CySim_solver? Can you run it from the command line? Can you run it from the command line when you change to mat labs present working directory (shown when typing
pwd
in Matlab?
You may have to change execution permission to the solver in linux
chmod a+x CySim_solver
and to add the directory of CySim_solver to the PATH or call it in Matlab with the full path.
If you are not familiar with Linux, ask a Linux guy in your team of how to get programs running under Linux. It may be more a Linux problem then a Matlab problem.
Ver también
Categorías
Más información sobre Search Path en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!