Azzera filtri
Azzera filtri

Import same class globally inside functions file

3 visualizzazioni (ultimi 30 giorni)
marianoc84
marianoc84 il 17 Ott 2011
I have a function file called getFeatures.m that looks like:
function [features] getFeatures()
% Import the XPath classes
import javax.xml.xpath.*
% other code
end
function [name] = getName()
% Import the XPath classes
import javax.xml.xpath.*
% other code
end
as you can see, both functions import xpath library, since I have a lot of functions that need to import that class how can I do this a single time?

Risposte (1)

Daniel Shub
Daniel Shub il 17 Ott 2011
I don't think you can. I asked a related question a few months ago:
Unfortunately, it hasn't gotten any answers :(

Community Treasure Hunt

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

Start Hunting!

Translated by