[Index for tmp_for_tar/vrml.doc]
[Return to Master Index]
shape
(tmp_for_tar/vrml.doc/shape.m)
Function Synopsis
s = shape(m)
Help text
s = shape(m)
Returns a string that shows where m has non-zero values. Useful for
checking the "fullness" of a matrix.
Last modified: December 2000
Listing of function file tmp_for_tar/vrml.doc/shape.m
## s = shape(m)
##
## Returns a string that shows where m has non-zero values. Useful for
## checking the "fullness" of a matrix.
## Author: Etienne Grossmann <etienne@isr.ist.utl.pt>
## Last modified: December 2000
function s = shape(m)
[r,c] = size(m) ;
s = reshape(blanks(r*(c+2)),r,c+2) ;
s(r+find(m)) = "#";
s(:,[1,c+2]) = "|";
Produced by oct2html on Sat Dec 2 19:08:39 2000
Cross-Directory links are: ON