Undocumented Secrets of MATLAB
®
-Java Programming286
imagesc, mesh, meshc, meshz, pcolor, plot against first column, surf, surfc,
surfl, waterfall, null, contour, contour3, contourf, image, imagesc, mesh,
meshc, meshz, pcolor, plot against first column, surf, surfc, surfl, waterfall]
>> plotFunc = 'surf'; % for example
>> plotSig = PlotMetadata.getPlotSignature(plotFunc);
>> args = cell(plotSig.getArgs)'
args =
[1x1 com.mathworks.mlwidgets.graphics.PlotArgDescriptor]
[1x1 com.mathworks.mlwidgets.graphics.PlotArgDescriptor]
[1x1 com.mathworks.mlwidgets.graphics.PlotArgDescriptor]
[1x1 com.mathworks.mlwidgets.graphics.PlotArgDescriptor]
>> argsStruct = []; % initialize
>> for argsIdx = 1 : length(args)
argsStruct(argsIdx).axis = char(args{argsIdx}.getAxis); ...