find numerical answers using Matlab

Solve for the variable y in terms of t, for given initial condition.
dy/dt= 20 cos 5t +8 ; y(0)=0
What is the value of y for t=4?

5 个评论

Since this is clearly your homework assignment, surely you are the one who should be doing the work? Or, should we send the answer directly to your teacher? If so, then please provide their address and name, so we could contact them directly, to get credit for the work. Would your teacher not be happy to be informed of your request to have someone else do your work for you?
yep, this is my homework,
I have many questions like this one, so i posted this question here , to get help from experts, if you can help me in this question I will be able to solve the remaining questions at my own.
And if you don't know how to solve and please don't do loose talk in the comment section.
Thanks.
If you cannot integrate this simple function on your own, MATLAB's "int" should help:
Since this is a homework assignment, if you show us the code you've written to try to solve the problem and ask a specific question about where you're having difficulty we may be able to provide some guidance.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to quickly learn the essentials of MATLAB.
If you aren't sure where to start because you're not familiar with the mathematics you'll need to solve the problem, I recommend asking your professor and/or teaching assistant for help.
Experts won't do your homework for you. You won't learn anything if we do it for you, except how to get someone to do your work for you. And your teacher will rarely be happy with your posting your assignments on Answers. This is not a loose comment, but one pointing out why it is inappropriate to post your homework assignments online with no effort made.

请先登录,再进行评论。

 采纳的回答

Integrate the right hand side with respect to t, remembering the constant. Solve for the constant given the initial condition. Evaluate the expression at the given t

3 个评论

kindly solve it on matlab,and share the code
Use Symbolic toolbox syms and int() and subs() . You will not need solve()
syms t C
dydt = 19 * tan(7*t) + 11 * sin(8*t) + 11
dydt = 
y = int(dydt)
y = 
C = -subs(y, t, 0)
C = 
y = simplify(y + C)
y = 
simplify(subs(y, t, 9))
ans = 
%crosscheck boundary
subs(y, t, 0)
ans = 
0

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by