Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

surfs and meshplot problem

1 visualización (últimos 30 días)
Rica
Rica el 28 de Nov. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi I want to plot a function of two variables with surfc, I get the error Z must be a matrix not a scalor or vector.
My function is like this: %
Z=exp(M.*log(eps)+v.*eps), M=[1:30] eps=[11:40]
I want to plot surfc(Z,M,eps). could you help me?

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 28 de Nov. de 2012
plot3(Z,M,eps)

Matt Fig
Matt Fig el 28 de Nov. de 2012
Editada: Matt Fig el 28 de Nov. de 2012
[M,EPS] = meshgrid(1:30,11:40);
v = 3;
Z = exp(M.*log(EPS)+v.*EPS);
surfc(M,EPS,Z)
set(gcf,'render','zbuf')

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by