How could I plot a 3D surface response for 3 independent variables and one dependent variable

8 ビュー (過去 30 日間)
Lily Shepherdly
Lily Shepherdly 2020 年 12 月 6 日
編集済み: Ameer Hamza 2020 年 12 月 6 日
I have 3 independent variables and a dependent variable
x1 = Dataset(:,1); %pH value
x2 = Dataset(:,2); %NaCl level
x3 = Dataset(:,3);%Temperature
y = Dataset(:,4);%Yield
And I was wondering if it was possible for me to plot them all on a 3d response surface plot. I have only seen examples of 3 variables so didnt know if it was possible

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 12 月 6 日
編集済み: Ameer Hamza 2020 年 12 月 6 日
First, you need to convert your list of scattered points into a 3D grid using interpolation: https://www.mathworks.com/help/matlab/ref/scatteredinterpolant.html

カテゴリ

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