Artifact 8618dcbf0dce92d10cf00d1939804df07117a1be257495697d235ea27b9ede90:
- Executable file mtt/bin/trans/m/add_row.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 250) [annotate] [blame] [check-ins using] [more...]
- Executable file mttroot/mtt/bin/trans/m/add_row.m — part of check-in [13167be20c] at 2000-12-27 16:51:18 on branch origin/master — Initial revision (user: gawthrop@users.sourceforge.net, size: 250) [annotate] [blame] [check-ins using]
function New=add_row(Old,Row); # Adds a row to end of matrix [N,M]=size(Old); [n,m] = size(Row); if m>M Old = [Old, zeros(N,m-M)]; # Pad with zeros elseif M>m Row = [Row, zeros(n,M-m)]; endif New = [Old;Row]; endfunction