Why won't my plot appear on the graph?
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots 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!