Using FPLOT to plot a multi variable function
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Naveen
il 5 Feb 2014
Commentato: Manuel Ruivo de Oliveira
il 11 Apr 2022
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 Commenti
Risposta accettata
Walter Roberson
il 6 Feb 2014
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 Commenti
Manuel Ruivo de Oliveira
il 11 Apr 2022
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.
Più risposte (2)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!