Home > FR3DSource > zPlotOneNTRotated.m

zPlotOneNTRotated

PURPOSE ^

zPlotOneNTRotated(NT,ViewParam,R,S) rotates NT and displays with ViewParam

SYNOPSIS ^

function [void] = zPlotOneNTRotated(NT,ViewParam,R,S)

DESCRIPTION ^

 zPlotOneNTRotated(NT,ViewParam,R,S) rotates NT and displays with ViewParam

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % zPlotOneNTRotated(NT,ViewParam,R,S) rotates NT and displays with ViewParam
0002 
0003 function [void] = zPlotOneNTRotated(NT,ViewParam,R,S)
0004 
0005 NewNT.Code  = NT.Code;
0006 L           = length(NT.Fit(:,1));         % Number of base atoms
0007 
0008 NewNT.Fit   = (NT.Fit   - ones(L,1) *S) * R; % rotated into position
0009 s           = length(NT.Sugar(:,1));                % this sometimes varies
0010 NewNT.Sugar = (NT.Sugar - ones(s,1)*S) * R; % rotate sugar too
0011 NewNT.Base  = NT.Base;
0012 NewNT.Number= NT.Number;
0013 
0014 zPlotOneNT(NewNT,ViewParam)

Generated on Fri 03-Apr-2009 09:52:35 by m2html © 2003