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

Re: How best to convert an array with subarrays into an array without subarrays?

$
0
0

Here is on way to do it but I don't think ist the "most elegant" as I don't like to use the ranges for that purpose.

I'd rather prefer using a program which will take the nested matrix which a vectorized call would return and calculates and returns the unnested matrix.

But as a quick hack this appraoch may suffice:

1.png

EDIT: Just noticed - you can omit the vectorization in that appraoch as you are only passing a signle scalar as argument.


Viewing all articles
Browse latest Browse all 11712

Trending Articles



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