Why won't my plot appear on the graph?
Afficher commentaires plus anciens
Hello
I am currently trying to plot a function, but the line does not appear on the graph. When I display the x and y values, everything is being computer correctly, but it will not appear on the graph. My code is below:
figure;
for i = 0: 360
a = 10;
w1 = 360;
t1 = i;
t2 = atan((tan(t1))/(cos(a)));
num = w1*sec(t1).^2;
den = sec(t2).^2*cos(a);
w2 = num./den;
display (i);
display (w2);
plot (t1, w2, 'b-','LineWidth', 3);
hold on;
end
Thank You!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!