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

답변 (4개)

talal abulnaja
talal abulnaja 2023년 3월 29일

4 개 추천

try
xline(0);
yline(0);
Paulo Silva
Paulo Silva 2011년 3월 1일

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.
Swati Bhargava
Swati Bhargava 2022년 9월 3일
편집: Swati Bhargava 2022년 9월 3일

0 개 추천

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!

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

태그

질문:

2011년 3월 1일

답변:

2023년 3월 29일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by