Using FPLOT to plot a multi variable function
12 次查看(过去 30 天)
显示 更早的评论
Lets say I have function f= (x^3+y^3+z^3). For a constant y and z, I want to plot function 'f' between xmin<x<xmax using fplot. Is this possible?
0 个评论
采纳的回答
Walter Roberson
2014-2-6
f = @(x,y,z) x^3+y^3+z^3;
ycon = 5;
zcon = .34;
fun = @(x) f(x,ycon,zcon);
xmin = -4;
xmax = 6;
fplot(fun, [xmin, xmax])
5 个评论
Manuel Ruivo de Oliveira
2022-4-11
Thanks, that works. I have a related question about plotting a function given as an integral depending on a parameter, but that seems to deserve it's own post so I'll start a new discussion.
更多回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!