problem loading a .mat file stored in a package

조회 수: 4 (최근 30일)
Donna
Donna 2012년 7월 17일
답변: HyunGwang Cho 2023년 10월 26일
If I create a package and store some test data in a .mat file in that package folder and then import the whole package why can't I just do load filename.mat? It can't seem to find the file. The folder above the package is definitely on the path.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 7월 17일
Could you clarify what you mean by "package" in this situation? For example is this a question about the MATLAB Compiler and an "additional file" ?

댓글을 달려면 로그인하십시오.

답변 (1개)

HyunGwang Cho
HyunGwang Cho 2023년 10월 26일
I had the same problem. I don't know if this is the correct way, but I used
load +mypackage/filename.mat
like this.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by