Robochameleon
v1.0
Main Page
User Guides
Code groups
Classes
Files
File List
File Members
utils
constutils
mat2cplx.m
1
function
x = mat2cplx(y)
2
%MAT2CPLX Converts a matrix to a complex vector.
3
%
4
% X = MAT2CPLX(Y)
5
6
if size(y,2)~=2
7
error('Second dimension must be 2.');
8
end
9
if ~isreal(y)
10
error('Only reals allowed.');
11
end
12
13
x = complex(y(:,1),y(:,2));
Generated on Fri Dec 9 2016 18:23:35 for Robochameleon by
1.8.11