So I'm trying to do circuit evaluation. Sometimes it evaluates fine and I get solved variables, but often I get the following error:
Error using mupadmex
Error in MuPAD command: Cannot define a matrix over 'Dom::ExpressionField()'.
[(Dom::Matrix(Dom::ExpressionField()))::new]
Error in sym/subsref (line 687)
B = mupadmex('symobj::subsref',A.s,inds{:});
Error in CircuitGA (line 327)
eval([char(X(i)) '=' char(V(i)) ';']);
Does anyone know why this is happening? Is there a fix?

댓글 수: 1

Christopher Creutzig
Christopher Creutzig 2014년 8월 29일
It's unlikely anyone can know that without you providing a minimal complete self-contained example that shows the bug.
From the snippet you sent, I assume the primary problem is the use of char and eval. That is fragile and should not be necessary for symbolic computations in the first place.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기

질문:

2014년 7월 16일

댓글:

2014년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by