Generated figure but no plot
2 views (last 30 days)
Show older comments
danh nguyen
on 20 Apr 2019
Answered: Walter Roberson
on 20 Apr 2019
When I plot, a blank figure appears. I am not sure what I am doing wrong or missing. Here is my code:
n=1;
z_i=[0.0079 0.1321 0.0849 0.269 0.0589 0.1321 0.3151];
k_i=[16.2 5.2 2.6 1.98 0.91 0.72 0.28];
z=zeros(1,(n/0.1)+1);
f_psi=zeros(1,(n/0.1)+1);
sum=zeros(1,(n/0.1)+1);
for psi=0:0.1:n
for c=1:1:7
f_psi(c)=z_i(c).*(1-k_i(c))./(1+psi.*(k_i(c)-1));
while i==1
sum(c)=f_psi(c)+z(i);
z(i)=f_psi(c);
i=i+1;
end
end
end
figure(1)
plot(psi,sum)
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Annotations 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!