MATLAB Answers

How to remove the error The file C:\Users\a​ishw\OneDr​ive\Docume​nts\MATLAB​\startlab.​m is not in the project?

1 ビュー (過去 30 日間)
Aishwarya Chougule
Aishwarya Chougule 2020 年 10 月 7 日
コメント済み: Aishwarya Chougule 2020 年 10 月 9 日
I am creating a project from New -> Project -> From folder. I am unable to add atartup file from my folder where all the matlab files are saved.

  0 件のコメント



Ameer Hamza
Ameer Hamza 2020 年 10 月 7 日
編集済み: Ameer Hamza 2020 年 10 月 7 日
As the error message indicates, the startup file must be placed inside the project folder. You cannot add an arbitrary file as project startup. Read the description of the startup file here:

  2 件のコメント

Hiro 2020 年 10 月 7 日
I have created a project with a file set as a startup file. It worked well.
Have you tried as follows?:
  1. complete creating a new project
  2. add startupfile.m in the project
  3. make the file as a startup file
Ameer Hamza
Ameer Hamza 2020 年 10 月 7 日
Sorry! It wasn't my question. I am just answering the original question. The problem isn't that OP hasn't created a startup file; instead, they are trying to add a file outside of the project folder as a startup file. That is why OP is getting that error.


その他の回答 (1 件)

Hiro 2020 年 10 月 7 日
From Run Checks and press the third button from the top then you can add your new files to the project.

Community Treasure Hunt

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

Start Hunting!

Translated by