Error using sym>tomupad

14 ビュー (過去 30 日間)
ninu
ninu 2020 年 5 月 21 日
コメント済み: Walter Roberson 2020 年 5 月 21 日
Dear all,
Please, help me with this error:
Error using sym>tomupad (line 1268)
Unable to convert 'struct' to 'sym'.
Error in sym (line 220)
S.s = tomupad(x);
Error in sym/privResolveArgs (line 1005)
argout{k} = sym(arg);
Error in sym/vertcat (line 14)
args = privResolveArgs(varargin{:});
Error in FINSOL_NCC (line 47)
vv_t = [k_t;m_t;c_t;l_t;z_t;u_t;v_t];
I attached the code, but probabily the problem is from this part:
c_t = solve(EQ(1),sym('c_t'));
EQ(2) = subs(EQ(2),{'c_t'},{c_t});
EQ(3) = subs(EQ(3),{'c_t'},{c_t});
m_t = solve(EQ(2),sym('m_t'));
EQ(3) = subs(EQ(3),{'m_t'},{m_t});
l_t = solve(EQ(3),sym('l_t'));
m_t = subs(m_t,{'l_t'},{l_t});
c_t = subs(c_t,{'l_t','m_t'},{l_t,m_t});
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 21 日
The problem is not that part. Those lines do not occur in the file until vv_t has already failed.
The problem originates in one of the other files.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by