plotResult

PURPOSE ^

plotResult Simple helper function to draw results in the demos

SYNOPSIS ^

function plotResult(x, y, z, xi, yi, zi, spRows, spCols, spInd, titleStr, xLabel, yLabel, zLabel, setAxisEqual)

DESCRIPTION ^

plotResult Simple helper function to draw results in the demos

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function plotResult(x, y, z, xi, yi, zi, spRows, spCols, spInd, titleStr, xLabel, yLabel, zLabel, setAxisEqual)
0002 %plotResult Simple helper function to draw results in the demos
0003     subplot(spRows, spCols, spInd);
0004     if ~isempty(xi)
0005         surf(xi, yi, zi);
0006     end
0007     hold on;
0008     if ~isempty(x)
0009         plot3(x, y, z, '.r');
0010     end    
0011     title(titleStr);
0012     xlabel(xLabel);
0013     ylabel(yLabel);
0014     zlabel(zLabel);
0015     if setAxisEqual
0016         axis equal;
0017     end
0018     hold off;
0019 end

Generated on Thu 10-Dec-2020 17:34:27 by m2html © 2005