Plotting a graph with multiple constraints
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Peng Li
on 26 Mar 2020
x >= 2 & x <= 5
this express will consider both constraints in. Is this what you need?
2 Comments
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!