readcondcell
Read conditions.
Syntax
BC = readcondcell(conditions)
Description
BC = readcondcell(conditions) This is a generalized form for conditions
as sum(i = 0:n)biy^(i)(xi) = y0.
Input
conditions = string or cell of conditions.
Output
BC = cell of conditions.
Example if
conditions = {'y''''(6)+423y(5) = -23';
'y''''''(31)-2y(14)-9y(8) = 4';
'341y(129)-1224y''(-2) = -100438'}; %or
conditions = ['y''''(6)+423y(5) = -23 ';
'y''''''(31)-2y(14)-9y(8) = 4 ';
'341y(129)-1224y''(-2) = -100438'];
(remember that '' means just ' as a string), then:
BC = readcondcell(conditions) returns:
BC = {[2 0] [3 0 0] [0 1];
[6 5] [31 14 8] [129 -2];
[1 423] [1 -2 -9] [341 -1224];
-23 4 -100438}
See also
sep_operator_rhs.
BC = readcondcell(conditions) This is a generalized form for conditions as sum(i = 0:n)biy^(i)(xi) = y0.
Input
conditions = string or cell of conditions.
Output
BC = cell of conditions.
Example if
conditions = {'y''''(6)+423y(5) = -23';
'y''''''(31)-2y(14)-9y(8) = 4';
'341y(129)-1224y''(-2) = -100438'}; %or
conditions = ['y''''(6)+423y(5) = -23 ';
'y''''''(31)-2y(14)-9y(8) = 4 ';
'341y(129)-1224y''(-2) = -100438'];
(remember that '' means just ' as a string), then:
BC = readcondcell(conditions) returns:
BC = {[2 0] [3 0 0] [0 1];
[6 5] [31 14 8] [129 -2];
[1 423] [1 -2 -9] [341 -1224];
-23 4 -100438}
See also
sep_operator_rhs.
BC = cell of conditions.
Example if
conditions = {'y''''(6)+423y(5) = -23';
'y''''''(31)-2y(14)-9y(8) = 4';
'341y(129)-1224y''(-2) = -100438'}; %or
conditions = ['y''''(6)+423y(5) = -23 ';
'y''''''(31)-2y(14)-9y(8) = 4 ';
'341y(129)-1224y''(-2) = -100438'];
(remember that '' means just ' as a string), then:
BC = readcondcell(conditions) returns:
BC = {[2 0] [3 0 0] [0 1];
[6 5] [31 14 8] [129 -2];
[1 423] [1 -2 -9] [341 -1224];
-23 4 -100438}
See also
sep_operator_rhs.
sep_operator_rhs.