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

2 ビュー (過去 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);
  1 件のコメント
dulanga
dulanga 2017 年 3 月 7 日
thanks the caps was the issue :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by