In follow-up to a question of mine from yesterday, I tried to do the following:
For the b0, bq+1 and B
I did:
bq1 = [];
for (i=1:length(Mte(1,:,3)))
t = sym(['bq' int2str(i)]);
bq1 = [bq1; t];
end
I then ran:
>> 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{:});
So I tried:
>> 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{:});
What does this error mean, and how I can fix it?