Skip to main content
13-Aquamarine
April 23, 2012
Solved

How to convert a nested vector into numbers

  • April 23, 2012
  • 2 replies
  • 3081 views

I have a probably very simple question. As a result I have a vector with nested values which I want to plt against a vector with numbers which is obviously not possible. How can I convert the nested vector into numbers?

Best answer by MikeArmstrong

There is a function called vec in the collapsed area of the attached worksheet which will do the trick.

Mike

2 replies

1-Visitor
April 23, 2012

There is a function called vec in the collapsed area of the attached worksheet which will do the trick.

Mike

FDS13-AquamarineAuthor
13-Aquamarine
April 23, 2012

Mike, thanks a lot!

Filip

1-Visitor
April 23, 2012

Your welcome.

Mike

1-Visitor
April 23, 2012

Out of curiosity, how have you arrived with an answer as a nested array?

Mike

FDS13-AquamarineAuthor
13-Aquamarine
April 23, 2012

Well I use a very nice addition to Mathcad called Kornucopia (www.bodietech.com) which has some very powerful unpack functions for data files as well as some great functions for data analysis. It was by using one of these functions that I obtained the nested array.

thanks again for your prompt reply,

Filip

1-Visitor
April 23, 2012

Cheers

The reason I asked was to try and iron out the issue of having nested arrays in the fiorst place, but I suppose using the pre-defined function isn't that taxing

Mike