Skip to main content
10-Marble
December 19, 2024
Solved

Variable Vector Plot

  • December 19, 2024
  • 2 replies
  • 962 views

How the variable vector can be plotted on 2D xy plot

 

Arshad_Ali_0-1734588124574.png

 

Best answer by Werner_E

@Arshad_Ali wrote:

How the variable vector can be plotted on 2D xy plot

 


What exactly do you mean by "plotting the vector"?

 

If you see A(x) as a vector of a couple of functions (in your case three linear functions) you can do as was shown by Luc.
Using this interpretation the number of rows in A is not mandatory - you could use less or more than three.

You may also use a waterfall plot:

Werner_E_0-1734609677101.png

 

But you may also see A(x) as a coordinate vector of a point in 3D which is dependent on a parameter x.
In this case you would be after plotting a curve in 3D and may be interested in 2D views like top view, etc..
Of course here its mandatory that A consists of exactly three rows.

Werner_E_1-1734609801299.png

 

 

2 replies

23-Emerald IV
December 19, 2024

Like this:

LucMeekes_0-1734604484110.png

You've defined a function A(x) which results in a vector of three different expressions in x. To plot them you need to separate them, that's what 's done with the indices 0, 1 and 2.

 

P.S. It's good habit to attach your worksheet file and state which version Prime you are using.

 

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
December 19, 2024

@Arshad_Ali wrote:

How the variable vector can be plotted on 2D xy plot

 


What exactly do you mean by "plotting the vector"?

 

If you see A(x) as a vector of a couple of functions (in your case three linear functions) you can do as was shown by Luc.
Using this interpretation the number of rows in A is not mandatory - you could use less or more than three.

You may also use a waterfall plot:

Werner_E_0-1734609677101.png

 

But you may also see A(x) as a coordinate vector of a point in 3D which is dependent on a parameter x.
In this case you would be after plotting a curve in 3D and may be interested in 2D views like top view, etc..
Of course here its mandatory that A consists of exactly three rows.

Werner_E_1-1734609801299.png

 

 

10-Marble
December 22, 2024

Thank you so much for providing the best solution, since I wanted a single plot of variable vector.

 

Thanks that you helped me.

 

Regards

 

Arshad