How to get a graph of variable which depend on previous variables.

AI Thread Summary
To plot a graph where the y-axis represents "Tr" and the x-axis represents "V," with "V" varying from 0 to 450 while keeping other variables (rho, S, W) constant, the user should substitute the constant values into the equation for "Tr." This allows "V" to be treated as the independent variable. The discussion highlights a need for assistance in creating a sample MATLAB script, particularly in understanding how to implement "for" loops in MATLAB, as the user has prior experience with "for" loops in C++. The user expresses difficulty in plotting the graph despite attempting to apply algebraic methods.
sgvaibhav
Messages
65
Reaction score
0
The picture explains everything.
Only V varies from 0 to 450.
Rest variables such as (rho), S, W are constant (those can be replaced with numbers in MATLAB).

So how do i plot such a graph?
oh forgot to mention the axes.
The y-axis should "Tr" and x - axis should be "V".
 

Attachments

  • Thrust Required.PNG
    Thrust Required.PNG
    30.7 KB · Views: 550
Physics news on Phys.org
Well, plug all the constant terms in the equation of Tr and leave v as an independent variable, it just seems to be ordinary algebra.
 
hmm...
i tried that, but i could not plot...
can i get a *part* of sample script.
 
Do you know how "for" loops work?
 
hmmm...
i recently learned for loops in C++...
i never knew if they existed in matlab...
 
Back
Top