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

조회 수: 3 (최근 30일)
dulanga
dulanga 2017년 3월 7일
댓글: dulanga 2017년 3월 7일
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

채택된 답변

Stephen23
Stephen23 2017년 3월 7일
Z=7*sin(pi.*X).*cos(3*pi.*X);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by