How can i draw this function ?
古いコメントを表示
i want to draw this function: x^2+(y+(x^3)^1/5)^2
回答 (2 件)
madhan ravi
2018 年 12 月 29 日
編集済み: madhan ravi
2018 年 12 月 29 日
Define the variables using syms x y and just plot the function with either of the below functions:
doc ezplot % 2D
doc ezsurf % 3D
Image Analyst
2018 年 12 月 29 日
編集済み: Image Analyst
2018 年 12 月 29 日
Did you try surf()? If not, why not?
x = linspace(-10, 10, 1000);
y = linspace(-10, 10, 1000);
[X, Y] = meshgrid(x, y);
z = X .^ 2 + (Y - (X .^ 3/5)) .^ 2;
surf(x, y, z, 'EdgeColor', 'none')
colorbar
xlabel('x', 'FontSize', 15);
ylabel('y', 'FontSize', 15);
title('z = X ^ 2 + (Y - (X ^ (3/5))) ^ 2', 'FontSize', 15, 'Interpreter', 'none');


and here it is zoomed in to the -1 to +1 range:

カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!