How can I plot a Sin or Cosine graph that looks this this?
조회 수: 2 (최근 30일)
이전 댓글 표시
Would anyone know how to properly scale this graph and create it? It does not have to be the same color as the attached pictures.
댓글 수: 0
답변 (1개)
John D'Errico
2020년 2월 8일
Start with one of these:
help fplot
help ezplot
But before that, start by reading the getting started tutorials.
댓글 수: 2
Steven Lord
2020년 2월 8일
What does the documentation for the plot function say it uses as the X coordinates of the plotted points when you call plot with only one input? Open that documentation using the doc function.
Is there another way to call plot that lets you specify the X coordinates of the plotted points?
If you want to control the limits of the axes, use the axis, xlim, and/or ylim functions.
참고 항목
카테고리
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!