simulink添加​slx文件到工程,报​错,请教如何解决

조회 수: 3 (최근 30일)
来超
来超 2024년 11월 13일
답변: Sivsankar 2025년 1월 21일
  댓글 수: 1
Swastik Sarkar
Swastik Sarkar 2024년 11월 18일
Could the model you were trying to import be shared ?

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

답변 (1개)

Sivsankar
Sivsankar 2025년 1월 21일
I assume that you are encountering an issue while trying to add a file to the Git repository from within MATLAB.
If you have a ".gitattributes" file in the Git repository, try deleting this file and see if you are then able to add the files. If this resolves the issue, check if the following line is present in the ".gitattributes" file:
* text=auto eol=crlf
The first part of the line (* text=auto) ensures that text files introduced by any contributor to the repository have their line endings normalized. You can set the text attribute to "auto" for all files. The second part of the line (eol=crlf) ensures that Git will always convert line endings to CRLF on checkout.
To try resolving the issue, open the ".gitattributes" file in the Git repository and move the mentioned line from the bottom to the top of the file.
I hope this helps!

카테고리

Help CenterFile Exchange에서 源代码管理集成에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!