function Display3D( csv_name, w, intFlg, fig, xstr, ystr, zstr, topstr ) % Display the 3D mesh % .. for the rows and columns of the matrix contained in "csv_name.csv" % .. using Figure(fig). % % Not yet tested with float inputs. (Actually I think it has. 28 Jan 09) % % 18 Jan 2009 D.Bozarth - SSU Engineering Science % fiRe = strcat(csv_name, '.csv'); fiIm = ''; polFlg = 0; sig = GetSignalFromComponents( fiRe, fiIm, w, intFlg, polFlg ); h = size( sig, 1 ); n = h; if h < w add = zeros(w-h, w); sig = [sig; add]; n = w; else if w < h add = zeros(h, h-w); sig = [sig add]; end end x = 0:(n-1); y = 0:(n-1); figure(fig); mesh(x, y, sig); xlabel(xstr); ylabel(ystr); zlabel(zstr); axis([0 w 0 h 0 255 0 255]); axis 'auto z'; name_str = csv_name; pos = findstr('_', name_str); if 0 < pos; name_str(pos) = '.'; end title_str = [topstr ', ' name_str]; title( title_str ); % % end script