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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

extracting data from mathcad coding

Asad
6-Contributor

extracting data from mathcad coding

 

I have written a for loop code and I want to assign the final answer to a variable that is out side the code so I can use it else where in the program.

 

I have attached the file. The value returned by k is the final answer 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Asad)

Make sure you have an index into the vector and plot it against that:

LM_20180925_Plot.png

You can also plot two (equal length!) vectors against each other:

LM_20180925_Plot1.png

Success!
Luc

View solution in original post

5 REPLIES 5
LucMeekes
23-Emerald III
(To:Asad)

There's a better way:

LM_20190918_Vector.png

Success!
Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

And if you want it simpler, without explicitly defining a range:

LM_20180919.png

Success!
Luc

Werner_E
24-Ruby V
(To:Asad)

Even simpler by using the undocumented trick to turn a range into a vector by using inline evaluation:

B.PNG

Asad
6-Contributor
(To:Asad)

how do i plot this vector on a 2-D plot Thanks!
LucMeekes
23-Emerald III
(To:Asad)

Make sure you have an index into the vector and plot it against that:

LM_20180925_Plot.png

You can also plot two (equal length!) vectors against each other:

LM_20180925_Plot1.png

Success!
Luc

Top Tags