Plotting a graph with multiple constraints
조회 수: 1 (최근 30일)
이전 댓글 표시
Im having trouble trouble plotting a function given multiple constraints.
For example where f(x) = cos(x)
Constraints
x>=2
x<=5
I was wondering how i could plot this graph on matlab showing both the constrains given,
Thanks in Advance for your help
댓글 수: 2
답변 (1개)
Peng Li
2020년 3월 26일
x >= 2 & x <= 5
this express will consider both constraints in. Is this what you need?
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!