[Index for tmp_for_tar/misc]
[Return to Master Index]
shape
(tmp_for_tar/misc/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: April 2001
Listing of function file tmp_for_tar/misc/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: April 2001
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 Apr 28 21:14:54 2001
Cross-Directory links are: ON