regarding sparse and speye function in matlab simulink
조회 수: 2 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!