다음: , 이전: , 상위 문서: Advanced Plotting   [차례][찾아보기]


15.4.5 Application-defined Data

Octave has a provision for attaching application-defined data to a graphics handle. The data can be anything which is meaningful to the application, and will be completely ignored by Octave.

setappdata (h, 이름, )
setappdata (h, name1, 값1, name2, value3, …)
setappdata (h, {name1, name2, …}, {값1, value2, …})

Set the application data 이름 to for the graphics object with handle h.

h may also be a vector of graphics handles. If the application data with the specified 이름 does not exist, it is created.

Multiple 이름/ pairs can be specified. Alternatively, a cell array of names and a corresponding cell array of values can be specified.

같이 보기: getappdata, isappdata, rmappdata, guidata, get, set, getpref, setpref.

= getappdata (h, 이름)
appdata = getappdata (h)

Return the of the application data 이름 for the graphics object with handle h.

h may also be a vector of graphics handles. If no second argument 이름 is given then getappdata returns a structure, appdata, whose fields correspond to the appdata properties.

같이 보기: setappdata, isappdata, rmappdata, guidata, get, set, getpref, setpref.

rmappdata (h, 이름)
rmappdata (h, name1, name2, …)

Delete the application data 이름 from the graphics object with handle h.

h may also be a vector of graphics handles. Multiple application data names may be supplied to delete several properties at once.

같이 보기: setappdata, getappdata, isappdata.

valid = isappdata (h, 이름)

Return true if the named application data, 이름, exists for the graphics object with handle h.

h may also be a vector of graphics handles.

같이 보기: getappdata, setappdata, rmappdata, guidata, get, set, getpref, setpref.


다음: , 이전: , 상위 문서: Advanced Plotting   [차례][찾아보기]