Home > voicebox > rotqc2qr.m

rotqc2qr

PURPOSE ^

ROTQC2QR converts a matrix of complex quaternion row vectors into real form

SYNOPSIS ^

function qr=rotqc2qr(qc)

DESCRIPTION ^

ROTQC2QR converts a matrix of complex quaternion row vectors into real form

 Inputs: 

     QC(2m,n)   mxn matrix of complex-valued quaternions

 Outputs: 

     QR(4m,n)   mxn matrix of real-valued quaternions

 The complex-valued quaternion [r+j*b  a+j*c] becomes [r a b c]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function qr=rotqc2qr(qc)
0002 %ROTQC2QR converts a matrix of complex quaternion row vectors into real form
0003 %
0004 % Inputs:
0005 %
0006 %     QC(2m,n)   mxn matrix of complex-valued quaternions
0007 %
0008 % Outputs:
0009 %
0010 %     QR(4m,n)   mxn matrix of real-valued quaternions
0011 %
0012 % The complex-valued quaternion [r+j*b  a+j*c] becomes [r a b c]
0013 
0014 %
0015 %      Copyright (C) Mike Brookes 2000-2006
0016 %      Version: $Id: rotqc2qr.m 713 2011-10-16 14:45:43Z dmb $
0017 %
0018 %   VOICEBOX is a MATLAB toolbox for speech processing.
0019 %   Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html
0020 %
0021 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0022 %   This program is free software; you can redistribute it and/or modify
0023 %   it under the terms of the GNU General Public License as published by
0024 %   the Free Software Foundation; either version 2 of the License, or
0025 %   (at your option) any later version.
0026 %
0027 %   This program is distributed in the hope that it will be useful,
0028 %   but WITHOUT ANY WARRANTY; without even the implied warranty of
0029 %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0030 %   GNU General Public License for more details.
0031 %
0032 %   You can obtain a copy of the GNU General Public License from
0033 %   http://www.gnu.org/copyleft/gpl.html or by writing to
0034 %   Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA.
0035 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0036 [m,n]=size(qc);
0037 i=(1:2:2*m)-mod(0:m-1,2);
0038 qr=zeros(2*m,n);
0039 qr(i,:)=real(qc);
0040 qr(i+2,:)=imag(qc);

Generated on Tue 10-Oct-2017 08:30:10 by m2html © 2003