can anyone write a 3d code for this

6 个评论

Sorry, I cannot read the writing clearly enough.
It looks like w is defined
w = n*R*T*log(w/v1)
Is that the same w on the left side and in the numerator of the division in the log ?
Then it looks like you have Q*w and it looks like it is being defined as
Q*w -> Q * w = n*R_T*log(w/v1)
which looks like it changes from R*T to and also seems to be missing the w on the right hand side, unless T/R_T has the right ratio to eliminate the w multiplier ?
Then there seems to be a definition for T but I can't read it. And then there seems to be but maybe it is ... hard to say.
It is not obvious how any of this would connect together to create a 3D plot, especially since you show us a 2D plot instead...
well this function furmula is pv=nrt its for gases in chemistry
but in this case as u can see in the image the "T" is setted in here
for ever line there is a setted nub
the image shows that the more u increase the "V" the "P" gets lower
but the "T" is setted to a single nub for every line
i need a 3d shape of this
the math function needed is log
the actual fumula is in the next fallowing image
ty a lot btw
What are the independent variables, and their ranges? What is the dependent variable? What is the formula for the dependent variable in terms of the independent variables?
independent v
dependent p
formula : the last pic i sent u the logaritm function
f= -p1v1ln(v2/v1)
but this is the 2d form
i need a 3d which there is needed to be a 3rd partition which is the T
and this is setted to a nub for every line in the first pic like
T=200
T=300
.
.
.
there are 8 lines i need a 3d form of all of this
and i just visited ur page u r so cool
f= -p1v1ln(v2/v1)
That appears to have three input variables, , , and one output variable, f .
You indicate that p is the output, so it sounds as if you have a given f value and you want
p_1 = f ./ (v_1 .* log(v_2 ./ v_1))
This appears to have three input variables, f, , and one output variable, . This would require a 4 dimensional plot.
You want to add T to the formula in some way that I already told you I cannot read from the image you posted in your Question.

请先登录,再进行评论。

回答(1 个)

Did you try just plotting the formula? Something like this:
% independent v
% dependent p
% formula : the last pic i sent u the logaritm function
v1 = 2; % Whatever.....
p1 = 5; % Whatever.....
v2 = linspace(0, 5, 1000);
p = -p1 * v1 * log(v2 ./ v1);
plot(v2, p, 'b-');
grid on;
ylabel('P(pa)', 'FontSize', 20);
xlabel('v in m^3', 'FontSize', 20);
Adapt as needed for different T, v, v1, v2, p1, etc.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by