Plot function of two variables in 2D space
6 次查看(过去 30 天)
显示 更早的评论
I have the function V(x1,x2) = x1^3 + x2^2
I am trying to plot k = x1^3 + x2^2 for different values of k (i.e. k=0.2, 0.4, etc.) for x1 = [0,1] and x2 = [0,1]. The plot will be limited by the x1 and x2 values that are allowable.
I am having trouble plotting this in 2D Matlab. Any help is appreciated.
The plot should look something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1517296/image.png)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!