## SpTeisendusUhikMaatriks0x1v.m
function SpTM0x1xz=SpTeisendusUhikMaatriks0x1v(VarrasN)
##
##   The sparse identity matrix of reaction Cy at the node
## disp(' http://digi.lib.ttu.ee/opik_eme/Ehitusmehaanika.pdf#page=427  #page=425
##=========================================================================
## This Program is written by Andres Lahe,   2013-06-26
##                    e-mail: andres.lahe@ttu.ee
## LAST MODIFIED: Andres Lahe,   2013-06-27
## Copyright (c)  2013 by Tallinn University of Technology 
##                Department of Mechanics
##                http://www.ttu.ee/
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.

## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.

## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
## http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
##=========================================================================
##
## NSARV - the number of frame nodes
## NEARV - the number of elements
## VarrasN - the number of the element
##
#if nargin != 1
if ~(nargin==1)
error(' function SpTeisendusUhikMaatriks0x1v have wrong number of input arguments!') 
end
#
#switch (VarrasN);
#case{1}
#i=VarrasN;
##
suunakosin= zeros(2,2);
        suunakosin(1,1)=0.0;
        suunakosin(2,1)=1.0;  
TM0x1=suunakosin;
SpTM0k1=sparse(TM0x1);
#
#%%%%%%%%%%%
#endswitch


SpTM0x1xz=SpTM0k1;
#
endfunction
