Differential Equation Graph From Initial Conditions

2 views (last 30 days)
Hello,
I have next to now time to get this done, I need to output a graph displaying N = 2 and Lamda = 0.001 using live scripts for some uni course work.
Problem being my tutor has yet to go over anything to do with MatLab so I'm flying blind.
How can I get this done quickly?
The equation is as follows;
dN / dt = −λN(t)
Initail conditions are N = 2 and Lamda = 0.001
Thanks in advance.
  2 Comments
J. Alex Lee
J. Alex Lee on 7 Feb 2020
What are you supposed to graph?
Before running to matlab, what is the math problem that needs to be solved? Do you know how to solve it? What role will matlab need to play in this process?
Connor Wright
Connor Wright on 7 Feb 2020
Edited: Connor Wright on 7 Feb 2020
Using Matlab Live Scripts check your answers to part (i) providing screen dumps to illustrate. With N0 = 2 and λ = 0.001 plot a graph of the solution N(t).
Thats the qeustion,
I'm supposed to be finding the general solution then applying the intial conditions mentioned above to the equation dN / dt = −λN(t). Which I've done with pen and paper for both solutions.
Once this has been solved using MatLab, I need to produce a graph with the solution for N(t)
I appologize for any spelling mistakes as well and if I am coming over a bit irritated, I've been up all night and the deadline for this is tonight at 6.

Sign in to comment.

Answers (1)

Karthi Ramachandran
Karthi Ramachandran on 7 Feb 2020
Check the file below may be it will help

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!