running Matlab batch error: ERROR: MATLAB error Exit Status: 0x00000001

66 次查看(过去 30 天)
running this command in both the command line and in Jenkins gives me error:
matlab -batch "addpath(fullfile(pwd,'functions')); exit(runJenkins)"
here are some other text displayed ; these are unit tests outputs.The unit test passed, but the error still shows up.
Running mysqrt_Test
..
Done mysqrt_Test
__________
1
ERROR: MATLAB error Exit Status: 0x00000001
C:\Users\ODMED\AppData\Local\Jenkins\.jenkins\workspace\Matlab test>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
  3 个评论
Thanh
Thanh 2023-3-11
Downloaded 2022b trial version and the same thing is happening. Anyone has any ideas?

请先登录,再进行评论。

回答(1 个)

Mahsa Hassankashi
Mahsa Hassankashi 2023-5-23
编辑:Mahsa Hassankashi 2023-6-16
Hello
My answere might be late but if you encounter this problem go below link in your hard and remove files inside these folder (Roaming),(local).
"In the case if you could not find below path; Menu(View) -> Check the hidden items"
C:\Users\Mahsa{It can be your user name}\AppData\Roaming\MathWorks\MATLAB\R2020a
C:\Users\Mahsa{It can be your user name}\AppData\Local\MathWorks\MATLAB\R2020a
The problem can be cashe from unproperly closing or exiting from application.
Good Luck.
  1 个评论
Dhanesh R
Dhanesh R 2024-10-3
Thank you very much @Mahsa Hassankashi.
For me, MATLAB itself wasn't opening. When I monitored Task Manager, a MATLAB process appeared and disappeared.
When I tried accessing MATLAB from Command Prompt with '-batch' attribute, only then I could see the error.
I cleared these folders and it worked.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 R Language 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by