Showing x-axis & y-axis
144 ビュー (過去 30 日間)
古いコメントを表示
hello am supposed to use fplot command to plot the function sin(x)+cos(0.75x) in the interval [0 15]
so i write :
fplot('sin(x)+cos(0.75*x)',[0 15])
The problem is that there is no y-axis and x-axis in the graph how can i display them?
NOTE: am using Matlab 6.1
0 件のコメント
回答 (4 件)
Paulo Silva
2011 年 3 月 1 日
After plotting that function do:
get(gca)
See the last property, visible, if it's off turn it on
axis on
I don't have that version of matlab, sorry if my answer doesn't help you.
0 件のコメント
Swati Bhargava
2022 年 9 月 3 日
編集済み: Swati Bhargava
2022 年 9 月 3 日
I am facing same issue when using fplot. I tried using axis on, but that does not help! Using grid on helps, but creates entire grid!
axis on; %does not help
grid on %helps, but more lines than needed!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!