Plotting in 3D

1 回表示 (過去 30 日間)
Fatema
Fatema 2023 年 5 月 24 日
編集済み: Dyuman Joshi 2023 年 5 月 24 日

How to do this 3D plotting

using this function

採用された回答

Dyuman Joshi
Dyuman Joshi 2023 年 5 月 24 日
編集済み: Dyuman Joshi 2023 年 5 月 24 日
If you have already posted a question, add any related info to the same question. Do not post a new question with new information.
val = 8;
[x,y] = meshgrid(1:0.1:val, -10:0.1:10);
fun = @(n) 6.^(n-1).*(n+4).*(n+6).^4;
surf(x,y,fun(x))
%Adjust limits and ticks
xlim([1 val])
xticks(1:val)
zlim([0 2e10])
%Adjust the view
view(135,45)

その他の回答 (1 件)

KSSV
KSSV 2023 年 5 月 24 日
Read about surf

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by