File not located on MATLAB 'path' but correct path is known by MATLAB

Posted by randress on
URL: http://forum.featool.com/File-not-located-on-MATLAB-path-but-correct-path-is-known-by-MATLAB-tp1037.html

In migrating MATLAB to a Windows 10 platform from Windows 7, I have encountered a curious difference in executable file path resolution.  It is only an "issue" for me because I have grown accustom to it in W7 :-)

In Windows 7, from the MATLAB console (shown below just after startup), if a command/script is entered for exection that is not to be found on the "path", many (most? all?) times, MATLAB tells you where it is and suggests a "cd" to that location or add that location to the path AND it even formulates the "cd" or "addpath" commands available by clicking on the appropriate "suggestion" text which is underlined.

So far I cannot duplicate this behavior on the W10 installation.

Here is what happens on W7

===============

	Home License -- for personal use only.  Not for government,
	academic, research, commercial, or other organizational use.

>> pwd

ans =

    'D:\FEATool\tempwork\calling c'

>> print_geom_objects
'print_geom_objects' is not found in the current folder or on the MATLAB path, but exists
in:
    D:\FEATool\tempwork\scripts

Change the MATLAB current folder or add its folder to the MATLAB path.
==============

The phrase "Change the MATLAB current folder" is underlined and if clicked on executes:
>> addpath 'D:\FEATool\tempwork\scripts'
The phrase "add its folder to the MATLAB path" is also underlined and if clicked on executes:
>> cd 'D:\FEATool\tempwork\scripts'



I realize that this is a MATLAB question (and I intend to pursue MATLAB for an answer), but all I can seem to find on the MATLAB site associated with this message is a discussion/question as to WHY the file is not found on the path ...  not the reason that the message is generated.

Kind regards,
Randal