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!