Script not found in the Command Windows

6 views (last 30 days)
Michel HOSPITAL
Michel HOSPITAL on 26 Mar 2021
Commented: Michel HOSPITAL on 29 Mar 2021
MatLab 2016b
script are not recognized in the Command Windows
A script essai.m has been defined
when I type in Command Windows
>> essai
the following error message occurred /
Undefined function or variable 'essaiscript'.

Answers (2)

Paul Hoffrichter
Paul Hoffrichter on 26 Mar 2021
I am expecting that you will get the following:
>> which essai
'essai' not found.
Write down the folder where your essai.m file is located.
Go to the Home tab.
Hit the "Set Path" button in the ENVIRONMENT section.
You probably are not seeing the folder in the Set Path window.
Hit the Add Folder button; browse to the folder that has the essai.m file; and hit "Select Folder"
  2 Comments
Paul Hoffrichter
Paul Hoffrichter on 27 Mar 2021
You are welcome! If it is working now, do not forget to hit the ACCEPT button so others will be able to get the answer also.

Sign in to comment.


Michel HOSPITAL
Michel HOSPITAL on 29 Mar 2021
OK

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!