regarding sparse and speye function in matlab simulink

1 次查看(过去 30 天)
sir i used sparse and spey function in matlab simulink. i declared both to be extrinsic still getting error....its is showing me this error..please help me....
coder.extrinsic('sparse')
coder.extrinsic('speye')
....
....
....
L = sparse(indicies_x,indicies_y,elements,dimI(1)*dimI(2),dimI(1)*dimI(2));
k=speye(size(L));
T = ((L + .0001 .* k) \ T_est(:) .* .0001);
T = reshape(T, size(T_est));
and the error messgae is
Expected either a logical, char, int, fi, single, or double. Found an mxArray. MxArrays are returned from calls to the MATLAB interpreter and are not supported inside expressions. They may only be used on the right-hand side of assignments and as arguments to extrinsic functions.
Function 'MATLAB Function6' (#167.2932.2933), line 78, column 26: "k" Launch diagnostic report. Component: MATLAB Function | Category: Coder error
Undefined function or variable 'T'. The first assignment to a local variable determines its class.
Function 'MATLAB Function6' (#167.2973.2974), line 79, column 17: "T" Launch diagnostic report. Component: MATLAB Function | Category: Coder error

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by