regarding sparse and speye function in matlab simulink
Afficher commentaires plus anciens
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
Réponses (0)
Catégories
En savoir plus sur Sparse Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!