Import same class globally inside functions file
1 回表示 (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Daniel Shub
2011 年 10 月 17 日
I don't think you can. I asked a related question a few months ago:
Unfortunately, it hasn't gotten any answers :(
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!