problem loading a .mat file stored in a package

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 Kommentar

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" ?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

HyunGwang Cho
HyunGwang Cho am 26 Okt. 2023

0 Stimmen

I had the same problem. I don't know if this is the correct way, but I used
load +mypackage/filename.mat
like this.

Kategorien

Mehr zu Files and Folders finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 17 Jul. 2012

Beantwortet:

am 26 Okt. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by