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

extracting data from mathcad coding

SOLVED
Highlighted
Regular Member

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
Highlighted

Re: extracting data from mathcad coding

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
Highlighted

Re: extracting data from mathcad coding

There's a better way:

LM_20190918_Vector.png

Success!
Luc

Highlighted

Re: extracting data from mathcad coding

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

LM_20180919.png

Success!
Luc

Highlighted

Re: extracting data from mathcad coding

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

B.PNG

Highlighted

Re: extracting data from mathcad coding

how do i plot this vector on a 2-D plot Thanks!
Highlighted

Re: extracting data from mathcad coding

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

Announcements