Jump to content

Array Split / Replace Subarrays


Achtu

Recommended Posts

Posted

image.png.bddcfa7417ef026e0c84787c47f6f6d6.png

I have a 2D array and I would like to replace the eleventh column with the lowercase of the fifth column. I understand that it is recommended to use Array Split / Replace Subarrays and my question is, am I using it correctly? And is there any other way? Thanks in advance.

Question.vi

Posted

You do it right yes, but just use the method you used at the bottom. It is more simple and just as "in-place" as the top-method. 

If the number of rows were huge and you mainly needed to save memory it might make sense to convert and replace one element at a time instead (avoiding a full copy of the column to be converted, which you still have in your two solutions (verified quickly using ArrayMemInfo...)), but that would be a different code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.