how can i draw graph of z^2=x^2-y^2 on matlab

8 ビュー (過去 30 日間)
Rabia Kanwal
Rabia Kanwal 2017 年 2 月 12 日
コメント済み: Walter Roberson 2020 年 3 月 10 日

採用された回答

Star Strider
Star Strider 2017 年 2 月 12 日
Is this what you want:
f = @(x,y) (x.^2 - y.^2).^2; % Your Function
x = linspace(-10, 10, 150); % X-Range
y = linspace(-10, 10, 150); % Y-Range
[X,Y] = meshgrid(x,y); % Create Matrix Arguments
figure(1)
sh = surf(X, Y, f(X,Y));
set(sh, 'EdgeColor','none')
grid on
  6 件のコメント
darova
darova 2019 年 10 月 7 日
As always, my plesure!
curry
curry 2019 年 12 月 11 日
complex number is not allowed .something wrong?

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

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 3 月 24 日
syms x y z
eqn = z^2 == x^2 - y^2;
fimplict3(eqn)

Salwa Aqeel
Salwa Aqeel 2019 年 10 月 7 日
編集済み: Walter Roberson 2019 年 10 月 8 日
dydt=-y(1)+1
y(0)=0
  3 件のコメント
Sandhiya N
Sandhiya N 2020 年 3 月 10 日
Z=e^-x(x^2+y^2)
Walter Roberson
Walter Roberson 2020 年 3 月 10 日
MATLAB uses exp() to express e^
Also MATLAB does not have any implied multiplication such as between the x and the (x^2 etc

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

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by