필터 지우기
필터 지우기

Import same class globally inside functions file

조회 수: 3 (최근 30일)
marianoc84
marianoc84 2011년 10월 17일
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?

답변 (1개)

Daniel Shub
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 :(

카테고리

Help CenterFile Exchange에서 Structured Data and XML Documents에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by