Path: news.mathworks.com!not-for-mail
From: "Gaurav Sharma" <itsastalavista@yahoo.co.in>
Newsgroups: comp.soft-sys.matlab
Subject: Square root of a matrix
Date: Mon, 27 Feb 2012 21:43:13 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <jigtdh$osi$1@newscl01ah.mathworks.com>
Reply-To: "Gaurav Sharma" <itsastalavista@yahoo.co.in>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1330378993 25490 172.30.248.38 (27 Feb 2012 21:43:13 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 27 Feb 2012 21:43:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3316030
Xref: news.mathworks.com comp.soft-sys.matlab:759213

i want to calculate the square root of sum of two matrices in simulink embedded function but as it does not support sqrtm function i used eml.extrinsic as-----

function sqrt  = fcn(A,B)
eml.extrinsic('sqrtm');
sqrt=sqrtm(A+B);

but it gives error as----

"Function output 'sqrt' cannot be of MATLAB type."

plz tell me whats the problem..