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

Click For Summary

Discussion Overview

The discussion revolves around how to plot a graph of a variable "Tr" that depends on another variable "V," while keeping other variables constant. The context includes programming in MATLAB and the use of loops for plotting.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant suggests plugging constant terms into the equation for "Tr" and treating "V" as an independent variable, indicating a straightforward algebraic approach.
  • Another participant expresses difficulty in plotting after attempting the suggested method and requests a sample script.
  • A question is raised about the understanding of "for" loops in MATLAB, implying a potential need for programming knowledge to implement the plotting.
  • A participant mentions familiarity with "for" loops in C++, questioning their existence in MATLAB.

Areas of Agreement / Disagreement

Participants have not reached a consensus on how to proceed with the plotting, as there are varying levels of understanding and experience with MATLAB programming.

Contextual Notes

There is uncertainty regarding the specific implementation details in MATLAB, such as the syntax for loops and plotting functions, which may affect the ability to generate the desired graph.

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: 565
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...
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
8K
Replies
2
Views
3K
Replies
1
Views
6K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
22
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K