필터 지우기
필터 지우기

shadowed file constructor file conflict

조회 수: 2 (최근 30일)
Darren Akehurst
Darren Akehurst 2020년 1월 16일
답변: Walter Roberson 2020년 1월 16일
I have a Guide .fig and .m file: ts_ClusConj_analysis.fig, ts_ClusConj_analysis.m
I also manually created a new mlapp to continue development of the program based on the older Guide files. tThis new file is ts_ClusConj_analysis.mlapp
But I could not run the original fig/.m file as matlab wanted to run the mlapp file with the same name.
So using windows file explorer I renamed ts_ClusConj_analysis.mlapp to clusConj_analysis.mlapp
I still could not run the original ts_ClusConj_analysis.m file.
So I deleted the now renamed clusConj_analysis.mlapp file.
Now I still cannot run the ts_ClusConj_analysis.m file getting the message
>> ts_ClusConj_analysis
Error using ts_ClusConj_analysis
Previously accessible file "C:\Users\bluma\OneDrive\Documents\Matlab\work\ts_ClusConj_analysis.mlapp" is now inaccessible.
when I run
>> which ts_ClusConj_analysis -all
I get the message
Not on MATLAB path % ts_ClusConj_analysis constructor
C:\Users\bluma\OneDrive\Documents\Matlab\work\ts_ClusConj_analysis.m % Shadowed
How do I resolve the constructor and shadowed file issue?

답변 (1개)

Walter Roberson
Walter Roberson 2020년 1월 16일
Quit MATLAB and re-enter it.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by