how can i draw graph of z^2=x^2-y^2 on matlab
8 ビュー (過去 30 日間)
古いコメントを表示

0 件のコメント
採用された回答
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 件のコメント
その他の回答 (2 件)
Salwa Aqeel
2019 年 10 月 7 日
編集済み: Walter Roberson
2019 年 10 月 8 日
dydt=-y(1)+1
y(0)=0
3 件のコメント
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 Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!