cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Variable Vector Plot

Arshad_Ali
3-Newcomer

Variable Vector Plot

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

 

Arshad_Ali_0-1734588124574.png

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Arshad_Ali)


@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

 

 

View solution in original post

3 REPLIES 3
LucMeekes
23-Emerald III
(To:Arshad_Ali)

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_E
25-Diamond I
(To:Arshad_Ali)


@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

 

 

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

Announcements

Top Tags