Simple matlab task

How to solve this:
y”+7y+5=0 , y(0)=2 ,y(0)=3
on matlab

Thanks
Nusrat NuriyevAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
y(x) = c1*sin(sqrt(7)*x)+c2*cos(sqrt(7)*x)-5/7
if y(0)=2, c2=19/7
if y(0)=3, c2=26/7
0
 
Nusrat NuriyevAuthor Commented:
>> y(x) = c1*sin(sqrt(7)*x)+c2*cos(sqrt(7)*x)-5/7
if y(0)=2, c2=19/7
if y(0)=3, c2=26/7

Open in new window


The following error occurred converting from sym
to double:
Error using mupadmex
Error in MuPAD command: DOUBLE cannot convert the
input expression into a double array.

If the input expression contains a symbolic
variable, use the VPA function instead.
0
All Courses

From novice to tech pro — start learning today.