Generated figure but no plot
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
danh nguyen
il 20 Apr 2019
Risposto: Walter Roberson
il 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 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!