Why won't my plot appear on the graph?
이전 댓글 표시
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!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!