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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 47 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))|
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply