Why will matlab plot one tan function but not the other.
8 次查看(过去 30 天)
显示 更早的评论
Why will matlab plot tan(8856*x/9444) using ezplot but won't plot 'tan(8856906554427779*x/9444732965739290427392).
For the first one it gives me a nice tangent looking graph but for the second one I just get a diagonal line.
0 个评论
回答(1 个)
Star Strider
2014-10-19
They’re not the same functions. The fraction in ‘f1’ =0.9377 (q1). The fraction in ‘f2’ =937.8E-009 (q2). Enlarging the x-axis limits as in figure(2) produces the desired plot:
f1 = @(x) tan(8856*x/9444);
q1 = 8856/9444;
f2 = @(x) tan(8856906554427779*x/9444732965739290427392);
q2 = 8856906554427779/9444732965739290427392;
figure(1)
ezplot(f1)
figure(2)
ezplot(f2, [-2E+6*pi 2E+6*pi])
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Axes Appearance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!