フィルターのクリア

Is it possible to have 3 or more variable inputs for a 3D contour plot in GUI?

7 ビュー (過去 30 日間)
Bastion
Bastion 2011 年 9 月 11 日
コメント済み: Walter Roberson 2015 年 6 月 11 日
I'm trying to make a 3D contour plot with an equation that has X,Y,Z and t as a variable input by the user in the GUI. Is it possible to achieve?
  1 件のコメント
Basma M
Basma M 2015 年 6 月 10 日
hi Bastion, i was wondering if you ever knew the correct code for this problem. i am very much interested in the solution you came up with cuz i need to solve the same equation but having difficulties doing so. I would really appreciate your feedback on this, it is somewhat urgent and i've already spent too much time and effort trying to work it out. THANKS

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

回答 (5 件)

Walter Roberson
Walter Roberson 2011 年 9 月 11 日
In what manner were you hoping to display your 4 dimensional data?
  1 件のコメント
Bastion
Bastion 2011 年 9 月 11 日
On a axes plot in matlab GUI. I wish to make a 3D contour

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


Bastion
Bastion 2011 年 9 月 11 日
Just to clarify:
I want to make a 3D CONTOUR plot in Matlab GUI. I have an equation for Concentration (C) which is a function of (X,Y,Z,t). I'm making t as a constant. But I want the user to input the data for values of X, Y and Z.
In the Matlab help files I got this for 3D contour:
[X,Y] = meshgrid([-2:.25:2]);
Z = X.*exp(-X.^2-Y.^2);
contour3(X,Y,Z,30)
This will only allow me to input the variables for X and Y and get Z as an output. So I'm wondering if it is possible for me to let X, Y and Z be inputs and C as my output.
  5 件のコメント
Walter Roberson
Walter Roberson 2011 年 9 月 12 日
You might also consider isosurface() or slice().
Also, some people have indicated that the scatter3() solution I proposed in the linked question has been fine for their needs. Representing a contour in that method might be a bit tricky, though.
Bastion
Bastion 2011 年 9 月 12 日
yeah I'm looking at isosurface but can't seem to place equation, I'll check it out

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


Dmitry Borovoy
Dmitry Borovoy 2011 年 9 月 12 日
If you really need to use function just create your own shell-function.
function MyContour3(X,Y,Z,t)
% add logic for assigning t in your equation
contour3(X,Y,Z)
end
  26 件のコメント
Walter Roberson
Walter Roberson 2011 年 9 月 20 日
The MATLAB notation for pi is pi
Test values would help so that I do not end up looking at a different oddity than you are looking at.
Bastion
Bastion 2011 年 9 月 22 日
Thanx for helping,
M=10
n=1
Vx=1
Dx=1
Dy=1
Dz=1
Xmax=2
Ymax=2
Zmax=2
t=10
would be fine
at the moment the graph doesn't change when I change the Xmax and Ymax input when I plot contour3(X,Y,C). But if I change any of the other variables the graph changes.

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


Sean de Wolski
Sean de Wolski 2011 年 9 月 12 日
An isosurface with different colored and shaded patch es can be used to visualize 4d data.
doc isosurface
doc patch

Basma M
Basma M 2015 年 6 月 10 日
hi Bastion, i was wondering if you ever knew the correct code for this problem. i am very much interested in the solution you came up with cuz i need to solve the same equation but having difficulties doing so. I would really appreciate your feedback on this, it is somewhat urgent and i've already spent too much time and effort trying to work it out. THANKS

カテゴリ

Help Center および File ExchangeScalar Volume Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by