필터 지우기
필터 지우기

How to open matlab project (.proj) in the background using -batch command from bash?

조회 수: 7 (최근 30일)
Alex
Alex 2023년 3월 20일
댓글: Marc 2023년 12월 1일
I have a matlab .proj file that is responsible for setting up all necessary file paths/references, basically the entire environment, when someone from the team checks out the matlab repository. I am trying to make some bash functions that call certain tools in the project, but I want them to run in the background. I am familiar with the -batch command which enables me to run .m files, but I can't run these scripts without opening the project, which opens a matlab window.
Is there a way I can open the project in the background (no window) from bash?
Here is what I have in a bash script currently, which successfully runs the GenerateReport tool, but also opens up a matlab window showing the project.
matlab -batch "open myProject.proj; GenerateReport"

답변 (1개)

Mark McBroom
Mark McBroom 2023년 3월 25일
  댓글 수: 1
Marc
Marc 2023년 12월 1일
On my end, this is still opening the GUI. Any way to open a project from a batch file without opening the GUI?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Projects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by