How to plot a single variable function with constraints
10 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am trying to plot f(x) = 4 - x*sin(x) with constraints x>=6, x<=9 and log(x)>= -1. I tried using meshgrid but the graph came out wrong + it was in the 3rd dimension. Can anyone tell me how I should go about plotting a simple function with these constraints? Thank you!
3 件のコメント
Huy Phan Dang
2021 年 7 月 19 日
log(x) or lg(x) can mean log 10 of x, my education system alway use lg(x) for log 10 of x as shortcut so it might be what your professor meant
回答 (2 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!