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

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices 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!

Translated by