Ploting a function in a for loop
Afficher commentaires plus anciens
d starts from zero and end at 0.99. For each d, i want to calculate y function. After that i want to plot y versus d. However my code does not generate plot. What am i doing wrong?
clc
k=0;
for d=0:0.01:0.99
k=k+1;
y(k)=1/(1+0.018*(d/(1-d)+d));
plot (y(k),d)
end
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numerical Integration and Differentiation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!