i get error saying that z should be a matrix and not a scalar

1 vue (au cours des 30 derniers jours)
dulanga
dulanga le 7 Mar 2017
Commenté : dulanga le 7 Mar 2017
x = linspace (-1,1); y = linspace (-1,1); [X, Y] = meshgrid(x,y); Z=7*sin(pi.*x).*cos(3*pi.*x);
surf(X,Y,Z ) hold on contour(X,Y,Z) hold off
rotate3d on

Réponse acceptée

Stephen23
Stephen23 le 7 Mar 2017
Z=7*sin(pi.*X).*cos(3*pi.*X);

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by