clc;
clear;
c11=1351;
c22=667.5;
c33=588.5;
c=1000;
syms C1 C2 C3 C4;
[C1,C2,C3,C4]=solve('C1+c11=C2','C2+2*c22=C3','C3+3*c33=C4','1/C1+1/C2+1/C3+1/C4=1000');
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Do not specify equations and variables as character vectors. Instead, create symbolic variables with syms.
> In solve>getEqns (line 446)
In solve (line 226)
In Cpb_cal (line 9)
clear;
c11=1351;
c22=667.5;
c33=588.5;
c=1000;
syms C1 C2 C3 C4;
[C1,C2,C3,C4]=solve('C1+c11=C2','C2+2*c22=C3','C3+3*c33=C4','1/C1+1/C2+1/C3+1/C4=1000');
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Support of character vectors will be removed in a future release. Character vectors can be used only for
variable names and numbers. Instead, to create symbolic expressions first create symbolic variables using 'syms'.
To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'.
> In sym>convertExpression (line 1581)
In sym>convertChar (line 1486)
In sym>tomupad (line 1236)
In sym (line 215)
In solve>getEqns (line 406)
In solve (line 226)
In Cpb_cal (line 9)
警告: Do not specify equations and variables as character vectors. Instead, create symbolic variables with syms.
> In solve>getEqns (line 446)
In solve (line 226)
In Cpb_cal (line 9)
