# Can someone help me solve this different equation on matlab?

1 view (last 30 days)

Show older comments

##### 0 Comments

### Answers (1)

Star Strider
on 18 Feb 2024

Perhaps this —

% 1/r * d/dr(r*dS/dr) + c1 - c2

syms r S(r) c1 c2 S0 DS0

Eqn = 1/r * diff(r*diff(S),r) + c1 - c2

S = dsolve(Eqn, S(0) == S0)

.

##### 6 Comments

Torsten
on 18 Feb 2024

It would be easiest if you include your attempt where you (unsuccessfully) used "bvp4c".

### See Also

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!