matlab - 3d plot of function with symbolic variables -
i have function 2 symbolic variables complicated , long. want have plotted in surface. function looks this:
y^(1/2)*x - y^(1/2)*(x - 1)*((40*y^2 + 60*y^(1/2) - 60*y^(3/2) - 10)/(90*y^(1/2)) + ...
whenever try plot, get: "undefined function 'plotfunc3d' input arguments of type 'sym'" or "conversion double sym not possible".
how can plot surface? thanks.
as error indicates, you're trying plot symbolic equation using functions designed matlab's default floating-point datatypes. question terse , didn't indicate how you're trying plot function in question, i'll give suggestions.
you have 2 options. can use plot function designed symbolic math or can substitute in floating point values of parameters , values. here a list of ez-
plotting methods can used symbolic equations.
secondly, can use subs
function substitute in values, or vectors/matrices of values symbolic equation. can try using double
if end equation stil symbolic not in terms of variables, e.g., double(sym('pi'))
.
i can't more specific because question wasn't, can try googling "matlab plot symbolic function" more results.
Comments
Post a Comment