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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

extracting data from mathcad coding

Asad
8-Gravel

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!

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

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

B.PNG

Asad
8-Gravel
(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

Announcements

Top Tags