Help please if possible,how to put these questions into matlab programming language?
1 次查看(过去 30 天)
显示 更早的评论
Don't help me to solve just needed guidance of how to put it into programming code.
a) Calculate and plot the ideal gas pressure as a function of volume for a given temperature. Mathematically, the operations can be written as shown below: (what does this question means?)
R = 8.31453Jmol-1K-1
T = 273.15K
N = 7mol
v = (0.1m3,0.3m3,…,1.5m3)
e = (1,1,…,1)T
t = Te
P = NRdiag(v)-1t
(b) Plot an exponentially decaying sine plot = e-0.4xsinx, 0 < x < 4π, taking 10, 50, and 100 points in the interval.
[Be careful about computing y. You need array multiplication between e-0.4x and sin(x)](what does a exponentially decaying sine plot looks like?)
(c) Let h(t)= <x, y, t > where x =t cos(t), y = t sin(t) for -10π ≤ t ≤ 10π be the space curve. Plot its graph over the indicated interval using 3d plot. (How to make a plot to become a 3d graph?)
9 个评论
Image Analyst
2013-10-7
That is confusing if T = transpose and T also equals temperature. But maybe she just couldn't reproduce superscripts like a small T in the editor.
采纳的回答
Image Analyst
2013-10-6
A hint for (b): they mean to use .* instead of * to do element by element multiplication instead of matrix multiplication. Same hint for (c). Another hint: linspace() function.
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!