Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12488

Subtract every value in a vector from another vector

$
0
0

I am decent with mathcad for simple calculations but lack understanding of the programming. I am really wanting to get a bit better but don't have any teaching and/or references. I thought at least this discussion board could be a great place for me to get help and tips.

 

For this problem I have 2 vectors each containing 100 values. What i am looking to do is subtract each and every single value in each vector from eachother. I think I may need to use some sort of looping routine in order to accomplish this but I don't know how. Maybe there is another way that is better. Sheet is attached with comments in red. Any help would be greatly appreciated. Also if anyone could point me in a good direction (books, etc) to become more familiar with creating these types of routines (for loops, nested for loops, etc). That would be greatly appreciated as well.


Viewing all articles
Browse latest Browse all 12488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>