| New Reply |
[Matlab] Plotting two functions of the same variable against each other |
Share Thread |
| Nov15-12, 05:35 PM | #1 |
|
|
[Matlab] Plotting two functions of the same variable against each other
I need to make two plots of volume as a function of time vs pressure as a function of time. When plotted the graph will have an enclosed area. I am having trouble on how to have matlab plot these two functions against each other.
My experience with matlab is having a function defined in a script file. I have not been exposed to using a function m file to define a function and reference it in a script. My functions are as follows where (t) is the only variable, everything else is defined earlier in the file. I need to graph P vs Vc and P vs Ve. The order of magnitudes of Vc and Ve is different by 10^-3 hopefully that won't matter. Vc =@(t) vc*sin(omega*t); Ve =@(t) ve*cos(omega*t); A =@(t) Vc(t)/(R*Tc) + vtl/(R*Ttl) + vr/(R*Tr) + Ve(t)/(R*Te); P =@(t) M/A(t); |
| Nov15-12, 06:14 PM | #2 |
|
Recognitions:
|
|
| Nov16-12, 12:24 AM | #3 |
|
|
|
| Nov16-12, 01:43 AM | #4 |
|
Recognitions:
|
[Matlab] Plotting two functions of the same variable against each other
No worries - sometimes the process of asking a question will produce the answer.
|
| New Reply |
| Tags |
| thermodynamics |
Similar Threads for: [Matlab] Plotting two functions of the same variable against each other
|
||||
| Thread | Forum | Replies | ||
| Plotting Fourier Functions in Matlab - Help? | Calculus & Beyond Homework | 1 | ||
| Plotting Bode Diagrams of exponential functions in MatLab(with unknows and a complex) | Math & Science Software | 0 | ||
| Numerical Integration of a 2-variable function in Matlab with respect to 1 variable | Math & Science Software | 1 | ||
| Plotting FFT in matlab | Mechanical Engineering | 0 | ||
| Plotting Transfer Functions Using Matlab | Math & Science Software | 1 | ||