I keep getting error on my code please help
显示 更早的评论
I keep getting an error can someone help please
function bacteria1 numIterations = 24; t = 0:numIterations; N = zeros(size(t)); N(1) = 1; N0 = 1; T = 1/3; for i=(1:numIterations) N(i+1)= N0.*(2.^(t./T)) end plot(t,N,'-o'); xlabel('t') ylabel('N')
采纳的回答
更多回答(1 个)
madhan ravi
2018-10-25
function bacteria1
numIterations = 24;
T=1/3
t = 0:numIterations;
N = zeros(size(t));
N(1) = 1;
N0 = 1;
N=N0.*(2.^(t./T))
plot(t,N,'-o');
xlabel('t')
ylabel('N')
end
类别
在 帮助中心 和 File Exchange 中查找有关 Error Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
