Error using sym>convertChar (line 1448)
Hi everyone,
I get the error message:
"Error using sym>convertChar (line 1448)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and
strings representing symbolic expressions, use ‘str2sym’.
Error in sym>tomupad (line 1214)
S = convertChar(x);
Error in sym (line 211)
S.s = tomupad(x);
Error in SolveExample>TurnEqIntoDEq (line 43)
depVarsLong(k) = sym([char(depVars(k)) ‘(‘ char(indepVar) ‘)’]);
Error in SolveExample (line 21)
[dEq3, initEq3] = TurnEqIntoDEq(Eq1, [a b c], t, 0);"
when I run the attached code. What can I do?Hi everyone,
I get the error message:
"Error using sym>convertChar (line 1448)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and
strings representing symbolic expressions, use ‘str2sym’.
Error in sym>tomupad (line 1214)
S = convertChar(x);
Error in sym (line 211)
S.s = tomupad(x);
Error in SolveExample>TurnEqIntoDEq (line 43)
depVarsLong(k) = sym([char(depVars(k)) ‘(‘ char(indepVar) ‘)’]);
Error in SolveExample (line 21)
[dEq3, initEq3] = TurnEqIntoDEq(Eq1, [a b c], t, 0);"
when I run the attached code. What can I do? Hi everyone,
I get the error message:
"Error using sym>convertChar (line 1448)
Character vectors and strings in the first argument can only specify a variable or number. To evaluate character vectors and
strings representing symbolic expressions, use ‘str2sym’.
Error in sym>tomupad (line 1214)
S = convertChar(x);
Error in sym (line 211)
S.s = tomupad(x);
Error in SolveExample>TurnEqIntoDEq (line 43)
depVarsLong(k) = sym([char(depVars(k)) ‘(‘ char(indepVar) ‘)’]);
Error in SolveExample (line 21)
[dEq3, initEq3] = TurnEqIntoDEq(Eq1, [a b c], t, 0);"
when I run the attached code. What can I do? solve, dsolve MATLAB Answers — New Questions