# Differential Equation Graph From Initial Conditions

1 view (last 30 days)
Connor Wright on 7 Feb 2020
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
##### 2 CommentsShowHide 1 older comment
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.

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

### Categories

Find more on Get Started with Control System Toolbox 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!

Translated by