0

在跟进我昨天提出的问题时,我尝试执行以下操作:

对于b0, bq+1 and B我所做的:

 bq1 = [];

for (i=1:length(Mte(1,:,3)))

t = sym(['bq' int2str(i)]);

bq1 = [bq1; t];

end

然后我跑了:

>> solve(H_tot_te*b == Mte(:,:,Q)*bq1 + lvec + Mprime*B1)
Error using char
Conversion to char from logical is not possible.

Error in solve>getEqns (line 245)
  vc = char(v);

Error in solve (line 141)
[eqns,vars,options] = getEqns(varargin{:});

所以我尝试了:

>> solve(double(H_tot_te*b == Mte(:,:,Q)*bq1 + lvec + Mprime*B1))
Error using strcmp
The number of rows of the string matrix must
match the number of elements in the cell.

Error in solve>getEqns (line 246)
  if any(strcmp(vc, {'IgnoreAnalyticConstraints', 'IgnoreSpecialCases', ...

Error in solve (line 141)
[eqns,vars,options] = getEqns(varargin{:});

这个错误是什么意思,我该如何解决?

4

0 回答 0