Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
428 bytes
|
Line | |
---|
1 | function sq=mrdivide(sp1,sp2) |
---|
2 | % sympoly/mrdivide: divide a sympoly object by a scalar or another polynom |
---|
3 | % usage: sq = sp1/sp2; |
---|
4 | % |
---|
5 | % arguments: |
---|
6 | % sp1,sp2 - sympoly objects or scalars |
---|
7 | % sq - sympoly (quotient) object |
---|
8 | |
---|
9 | % check the size of sp2 |
---|
10 | if numel(sp2)==1 |
---|
11 | % / is only an option if a scalar in the denomenator |
---|
12 | sq = sp1./sp2; |
---|
13 | else |
---|
14 | % denomenator |
---|
15 | error 'Cannot use / when denomenator is an array or vector' |
---|
16 | end |
---|
17 | |
---|
18 | |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.