Random selection of rows from a 2D array then subset both the rows that were selected and those that were not. Please see message below.
For example, I have a 2D array with 46 rows and 400 columns. I would like to randomly select 46 data rows from the 2D array. By doing the random selection it means that not all individual 46 rows will be selected some rows may appear more than once as there may be some duplicates or triplicates in the random selection. The importan thing is that we will have randomly selected 46 rows of data (no matter that some rows appear more than once). Then I would like to subset these randomly selected 46 data rows (some which will be duplicated, or triplicated, etc.) and then also find and subset the rows that were not selected. Does this make sense? Then i would like to do this say 10 times for this data set. So that then I will have 2 by 10 data sets: the first 10 each with 46 rows and the other 10 with n rows depending on how many WERE NOT randomly selected. i hope that my explanation is clear. I am relatively new to Labview. It is really great so I am getting better! If anyone can help me with this problems it will be great. RVR
Start by generating randon #s between 0 and 45. Run a for loop X times and in it use the random function, multiply the result by X and round down (-infinity). You can make this into a subVI, which you can reuse later. In the same loop, or in a different one, use Index Array to extract the rows which were selected (wiring the result out of the loop with auto indexing causes it to be rebuilt into a 2D array).
One possible solution for the second part would be to go over the array of randomly generated numbers in a for loop and use Search 1D Array to find each of the numbers (i). If you get -1, it means the row wasn't selected and you can extract it.
I hope this puts you on the right path. If not, don't be afraid to ask more.
To learn more about LV, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.
Try to take over the world!
Similar Messages
-
In Pages when I click the 'Sections' button then click on the 1st page I get a page that is titled "Lorem ipsum dolor sit amet"! Where did it come from and how do I get rid of it? I have tried deleting and "dont save" but it comes back. It is a full page in some unknown language. The only thing I can decifer is 'cupy uf cak'. Rdal
Roger,
The icon is +Sections, not just Sections, as in "Add a Section". When you click that icon you get a section break and and a new section template, complete with preformatted text called placeholder text. The reason "Lorem ipsum" is there is so you can see what the format looks like. The reason that it is Latin gibberish is so you won't get hung up on, or distracted by, what it says. It's just a display of format. Select the "Lorem ipsum" text and start typing your content.
Jerry -
I was updating my software on my iphone 4 and it crashed so it recovered it and i restored it from its back up. However I have lost all my music and my apps but not my pictures. How can i get my music back. I did not remove my phone from the computer until it had said it had finsihed.
Media and apps are not part of the backup. They need to be re-synced from your itunes library or re-downloaded from the store.
-
When I create a text message from my contact on my iphone 5, the contacts mobile number appears and not there name. But when they respond to my text, is shows up as a new text message with there name. How do I fix this?
Double click the home button and swipe up the messages app to stop it, then open the app again. This pretty much completely stops the process and freshly opens it again, resolving problems at times. I have had this happen before as well on my iPad, I get a banner, check messages, and nothing new is there.
If that doesn't work, close the app like suggested above, but then restart the phone by holding down the home and lock button for 10-15 seconds until the apple logo appears. -
I just purchased Adobe Acrobat Standard DC andf upgraded from Acrobat XI. When I instalkled it on my PC the print Production Tools were there and functional. I installed it on my Laptop and those tolls are not there. What do I need to do to have Print Production Tools on both computers?
This is quite odd. I wonder if you could try something for me on EACH computer.
Use Help > About Adobe Acrobat DC.
At the top of the box it should say Adobe Acrobat Pro DC or Adobe Acrobat Standard DC.
On each of the two machines, what does it say? (I think something odd has happened) -
How come there are no hidden objects games in the South African App Store and y does safari not allow you to get it downloaded from the net. There are only games for kids in the App Store. Can anyone help. Is the South African apple ipad only for children
Nobody here is responsible for what is or is not available in any country. I believe it is a software licensing thing.
-
I couldn't open the files from a Canon XF 300 into Final Cut Pro 7, so I downloade the plugin from Apple but still can't open the files. I opened and clicked on the installer icon. I'm not sure the plugin was actually installed. C
an anyone help?
Message was edited by: BigDealCam123As you probably know the Canon plug-in enables Log & Transfer in FCP7. I'm not sure whether it works with Final Cut Express or not.
Look in Applications>Canon Utilities. I'm running 10.6 as well and that is where it's located on my machine.
Good luck.
Russ -
it says that i have to pay again to download it from itunes.. how can i get the game in my itunes and phone? do I accept the charges and it will be re-embersed? what should I do? I have the order confirmation number etc.
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I just updated lightroom 5 and now it is completely gone from my computer!!! What the hell is going on and why can't I speak to someone at adobe.....ever???
You need to contact Adobe directly using the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
1. Adobe Photoshop Lightroom
2. Adobe ID, and signing-in
3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on.
Click here to get help now Contact Customer Care -
i want to ask my icloud storage and backup is 3,3 GB available from 5 GB is it also because the apps i have been purchased took that much space?
Note that Photos in your Camera Roll are also backed up to iCloud.
I have found most of the time, this is what is consuming a lot of the iCloud space.
You should regularly copy the photos from iPhone to computer.
-> http://support.apple.com/kb/HT4083
Then delete from the Camera Roll
You can then sync only the photos you want, back to the iPhone, using iTunes.
-> http://support.apple.com/kb/HT4236 -
I bought an iPhone 4 from a lady who failed to mention she could not do a hard reset because she didn't know the pass code. So now I need to delete this lady's information from my iPhone but I have already entered the wrong pass code 9 times. Any way I can bypass this pass code thing? Since I did not buy it from the apple store I have no warranty or support. Please any and all information and suggestions are greatly appreciated
You'll need to put the device into Recovery Mode and restore it:
http://support.apple.com/kb/ht1808
If that still doesn't work, try DFU mode:
http://www.iclarified.com/entry/index.php?enid=1034
Critical note: the seller set up Find My iPhone (iPad/iPod), however, then it has the Activation Lock on it and you'll need her to erase the iPhone through her iCloud account and then remove it from her account:
http://support.apple.com/kb/HT5818
If she won't or can't do that, then you have purchased a high-priced fancy brick and should get your money back from her.
Regards. -
i recently received a mac book air 11 inch for christmas ... i beliehve it was bought in the states from my father i was unaware of the specs until i opened and read it... and i was wondering if i can still do the upgrade to 8gb ram and bigger flash drive.. is this possible and for how much? its only a week old.
Your 14 days are up, however you could take your case to Apple Inc. regarding same,
however those are the stipulations.
RAM cannot be upgraded however, period, its permanent on the logic board after mfg.
As for the SSD (solid state drive), upgrading same is a bad premise 9 times out of 10.
No notebooks is a mass storage device, and you need an external HD for data redundancy and backups regardless.
data that is static on your SSD and not used very often has no logical reason to be ON the notebooks, and best saved on a superslim external HD ($60)
SSD are very expensive, even a small one, HD are cheap as dirt and users are recommended to have one regardless for many good reasons. -
Trying to add pictures from my computer to my iphone for the first time how do i do that
Trying to add pictures from my computer to my iphone for the first time how do I do that?
Sync them as you would anything else.
Open itunes, connect iphone, choose what you want, sync -
I'm trying to remove pages from my menu by excluding them via the page properties. When I do that Muse crashes and displays the following error, "Adobe Muse CC has encountered an error and wil not exit...." "menuItemBox U32584 has no associates page!"
Any help is appreciated.
Thanks,
CaroleOne or more menu widgets within your site have become out-of-sync with the structure of your site in Plan view. If you send us the file we can repair and return it. Or you could delete and recreate the menu widgets.
Please send us the .muse file at [email protected] along with a link to this thread. If the file is larger than 20Mb you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. (If you use a service, please include your return e-mail address in the body of the message, since not all services include it in the sharing invite they send.)
Thanks. -
Hello
I purchased iPad 4th wifi cellular from USA. Now I am using my iPad in Saudi Arabia and 4g signal does not work. Just 3G. Can you help me?
IS there any tool to fixThe iPad you purchased is designed to support the 4G network in the U.S. There is no tool to fix it. In order to get the 4G signal working in Saudi Arabia, you need to purchase an iPad there.
Maybe you are looking for
-
When I login at startup a random folder opens
Ok, this is weird. First of all this is my first Mac and I'm having a really difficult time figuring something out. Before I do a shutdown I will close every finder window and program. The next time I turn my computer on and login I will be greeted w
-
Cisco ISE 1.2 monitoring and Reporting
Hi Ali We're trying to determine how many addtional Base licenses we have to purchase in order to be compliant in our Cisco ISE 1.2 platforms (already have 1500 CISE 1.2 Base licenses in production). Is there any means to monitoring (e.g SNMP pollin
-
My Macbook pro was stolen before I had time to register it and I want to inform apple
My MacBook pro was stolen two days after I purchased it. I did not register my product nor did I have time to set up any tracking software. I still have the box and the registration/Serial Number. How can I inform Apple in hopes that they can help me
-
Is this possible in a single query?????
While I don't think this is possible in a single query, I definately don't have the background the experts here have. I have a request to identify all shipments in a period/range of periods that have a payment transaction. For those shipments, the
-
Reoprt execution time out for particular Plant
Hi GURUS, I am having ECC6.0 with MSSQL2005 combination here. One of my Sales register report executes fine with local plants but for plant which is about 2000 Km from here it gets timed out when executed. So i ran that report in background. It succe