Re: 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-tp1037p1045.html
randress wrote
This current working directory history is located just as the above message says (It seems to be limited to 20 entries.):
>> s= settings().matlab.desktop.currentfolder.History;
>> fprintf ("%s\n",s.ActiveValue{1:length(s.ActiveValue)})
D:\FEATool\tempwork
D:
D:\FEATool
D:\FEATool\tempwork\calling c
D:\FEATool\tempwork\Morse\Current Density at 1 meter\TableII Series\Zone of Danger
D:\FEATool\tempwork\Morse\Current Density at 1 meter\TableII Series\Zone of Danger\Total Current
D:\FEATool\tempwork\Morse\Current Density at 1 meter\TableII Series
D:\FEATool\tempwork\Morse\Current Density at 1 meter\TableII Series\CurrentDensity
D:\FEATool\tempwork\Morse\Current Density at 1 meter
D:\FEATool\tempwork\Morse
C:\Users\Randal\Documents\MATLAB\Examples\R2020a\matlab\LiveEditorInteractiveNarrative
C:\Users\Randal\AppData\Roaming\MathWorks\MATLAB\R2020a
D:\FEATool\tempwork\scripts
D:\FEATool\tempwork\Morse\Current Density at 1 meter\report
C:\Users\Randal\Documents\MATLAB\Examples\R2020a\matlab\ReturnControlToInvokingFunctionExample
C:\Users\Randal\AppData\Roaming\MathWorks\MATLAB Add-Ons\Apps\FEAToolMultiphysics
C:\Users\Randal\Desktop\FEATool betas\featool-v1p13-beta4c
C:\Users\Randal\Desktop\FEATool betas\featool-v1p13-beta4
C:\Users\Randal\Desktop\FEATool betas
C:\Users\Randal\Desktop\reports-1.13beta3
However I was not able to see what I expected when I "click the down arrow all the way on the right of the bar showing the current folder" as MATLAB suggested. I have inquired about this. I may have simply misunderstood what I was supposed to see.
MATLAB replied to correct my misinterpretation of their directions.
The following illustrates the scrollable list as displayed by clicking the arrow
to the right of the windows that displays the current folder
So, the long and short of this whole post is that if a path shows up in the current working directory history (possibly limited to 20), as viewed by 1 of 2 ways outlined above, MATLAB will search that list for executable files which are not found in the current working directory nor on the MATLAB search path (as viewed by "path" command). If the file is located in the cdw path history, then, rather than executing it, MATLAB notifies the user with hypertext alternatives to 'cd' to that directory or 'addpath' that directory.
-Kind regards,
Randal