Set symbolic variables constant in plot

3 visualizaciones (últimos 30 días)
Robert
Robert el 8 de Abr. de 2013
Hi all,
I have the symbolic function
f = 2*a^2*b^2 - 2*a^2*b + 5*a^2 - 2*a*b^3 - 2*a*b^2*c
and want to see a surface plot of this for c = 0.
I imagine I want to use the ezsurfc() function but how do I specify that I want to hold the symbolic variable 'c' constant and equal to 0?
Many thanks, Rob

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Abr. de 2013
ezsurfc( subs(f, c, 0) )

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by