From: "Gaurav Sharma" <>
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$>
Reply-To: "Gaurav Sharma" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1330378993 25490 (27 Feb 2012 21:43:13 GMT)
NNTP-Posting-Date: Mon, 27 Feb 2012 21:43:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3316030
Xref: 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)

but it gives error as----

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

plz tell me whats the problem..