how to use functions from private directories
Ältere Kommentare anzeigen
While I was trying to improve the performance of Excel file reading and writing, I've noticed that xlsread is using some other functions, located in a directory called ...\toolbox\matlab\iofun\private. I wrote a new function, which is composed of the code of xlsread, but it was impossible to access some functions that reside in the location above.
I tried using addpath:
addpath(fullfile(matlabroot, 'toolbox\matlab\iofun\private\'))
but I got a warning saying:
Warning: Private directories not allowed in MATLAB path
1. what's the reason for that?
2. are there any workarounds except of copying all the necessary related functions to my working directory?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 7 Jun. 2015
Bearbeitet: Walter Roberson
am 7 Jun. 2015
2 Stimmen
Private functions cannot be called directly from outside routines, except by making copies of them.
Kategorien
Mehr zu Environment and Settings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!