www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgdatasetgui/@table/pConvertDisplayToDataset.m

    function datasetIdx = pConvertDisplayToDataset(obj, dispIdx)
%PCONVERTDISPLAYTODATASET Convert display column to dataset column index
%
%  DATASETINDEX = PCONVERTDISPLAYTODATASET(OBJ, DISPLAYINDEX) takes the
%  index of a column being displayed and converts it to the correct column
%  in the underlying dataset.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


datasetIdx = obj.ColumnOrder(dispIdx);