Page 1 of 1

I'm creating this program in matlab and I can't seem to get it to become a line graph. I don't know what I'm doing wrong

Posted: Sun Jul 10, 2022 11:27 am
by answerhappygod
I M Creating This Program In Matlab And I Can T Seem To Get It To Become A Line Graph I Don T Know What I M Doing Wrong 1
I M Creating This Program In Matlab And I Can T Seem To Get It To Become A Line Graph I Don T Know What I M Doing Wrong 1 (40.25 KiB) Viewed 48 times
I'm creating this program in matlab and I can't seem to get it to become a line graph. I don't know what I'm doing wrong. I want to model this equation: Nt+1 = N₂e¹0(1-N) With different values for N(t) and essentially form a line graph with N(t) as x and N(t+1) as y. This is what I've got so far. Do I need to create a for loop? I just keep getting a blank graph. K itor - C:\Users\amıra\OneDrive\Documents\Year 3\Matlab\Code.m Code.m + N = [1,2,3,4,5]; R = 5; K = 15; t = 1; c=2; N (t+1) = N(t) *exp( R (1) *(1 - (N(t) / K ))); plot (N (t),N(t+1))|