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

3 Ansichten (letzte 30 Tage)
dulanga
dulanga am 7 Mär. 2017
Kommentiert: dulanga am 7 Mär. 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

Akzeptierte Antwort

Stephen23
Stephen23 am 7 Mär. 2017
Z=7*sin(pi.*X).*cos(3*pi.*X);

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by