How i can graph in 3 dimension, dependent of the temperature?

7 次查看(过去 30 天)
Good day for everyone, i have a simple question. I have matlab R2019a. My question is..
How i can graph this equation:
T = - 3 (x^2+y^2+z^2)^(1/2) + 300
is a room that is dependent of temperature in all directions
I tried this, but doesn't appear the graph
syms x y z
T0 = 300
f = -3*sqrt((x^2+y^2+z^2))+ T0;
fimplicit3(f, [0 0 0])
Thank you so much for your valious time.

回答(1 个)

Shashi Kiran
Shashi Kiran 2025-3-4,12:12
I understand that you want to visualize the temperature distribution in all directions using MATLAB.
The issue in the code is that "fimplicit3" requires an equation in the form of "T == value" and the plotting range should be specified as below.
Here is how you can do it.
syms x y z
T0 = 300;
T = -3 * sqrt(x^2 + y^2 + z^2) + T0;
% Plot the implicit surface where T = 100 (adjust as needed)
fimplicit3(T == 100, [-100 100 -100 100 -100 100])
This will generate a 3D plot of the surface where the temperature is 100. You can adjust the temperature value and modify the plotting range if needed.
For more information about "fimplicit3" you can refer the below MATLAB documentation https://www.mathworks.com/help/matlab/ref/fimplicit3.html
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by