Taking pieces of a signal and putting them in an array

Lets say I have a square wave in a large array (1X#samples). I want to
put the values of each positive part of the square wave into an array
such that its size is #positivepulses X #samplesperpulse. The only
thing that I know for certain about the square wave is that the
non-positive parts of the signal are zero.
Any suggestions for how I might achieve this?
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

use the java.util.Scanner class.
read in the file. loop through the lines to get the numbers and put them into an array and/or add them.
this is something you could have easily looked up on your own. if not in google, then definitely within these forums.

Similar Messages

  • Taking 2 separate data sets and putting them in 1 spreadsheet

    Hi,
    I am sure this is a simple issue, but it does not seem to be coming together for me. I am currently attempting to take data from 2 different text files and put them together into 2 separate columns. The code I have attached manages to put them together into one long column, does anyone have any advice on writing out that second list to another column instead of just appending it to the first?
    Thank you,
    Michael
    Attachments:
    Read_Text.vi ‏47 KB

    Hi again,
    Thank you for your comment about the breakpoint, I removed it.
    So I will attach everything I have, and maybe you can tell me where things can be tightened up.
    I will summarize how things work. Michael.vi basically takes a measurement of frequency and amplitude and puts them in text files as so. Read_text.vi then opens up those text files and puts them together into one nice text file, which I will post in my next comment along with the latest version of Read_text, as I can only upload 3 things at a time. I would then like to plot this information in an X-Y plot on the screen, which I have been attempting to do by putting the points together in clusters to be plotted, but that has been miserably failing.
    Thank you,
    Michael
    Attachments:
    Michael.vi ‏21 KB
    frequency.txt ‏18 KB
    amp.txt ‏12 KB

  • Taking clips from itunes movies and putting them into imovie

    I'm doing a school project and making a movie trailer and i need to take clips from a movie on my itunes and put it onto imovie so i can take clips from the movie. HELP PLEASE!!!

    How did the movie get into iTunes? Does it have digital rights copy protection? I guess you're not seeing the movie when you look in music in the iMovie media browser, is that right?

  • Taking songs from ipod classic and putting them on new computer without deleting plays and ratings?

    Hi Guys
    I need help. My computer died and I now have a new one with my old iTunes on a external hard drive (EHDD) and on my Ipod Classic.
    When I copied all the music from my EHDD to the new computer it has put all the music on there but without any ratings or play count.
    Is there a way I can use the info on my ipod classic to update the play count and ratings?
    Also I'm scared to sync my ipod to the new iTunes because I don't want to loose these plays and ratings.
    What should I do?

    Hello Calumk4,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning transferring iTunes libraries:
    iTunes: Back up your iTunes library by copying to an external hard drive
    Consolidating Your iTunes library
    To make the move as easy as possible, it's important to make sure all of the items in your library are in one place.
    Open iTunes Preferences:
    Mac: Choose iTunes > Preferences.
    Windows: Choose Edit > Preferences.
    Click Advanced.
    Make sure the option to "Copy files to iTunes Media folder when adding to library" is selected.
    Click OK.
    Note: With this option selected, when you add files to iTunes, iTunes places copies of the originals in the iTunes Media folder. The original files are left in their original locations. To save space on your hard disk, you might want to delete the original files after confirming import.
    Choose File > Library > Organize Library.
    Select the option to "Consolidate files."
    Note: If you recently updated to iTunes 9, you might want to consider selecting the option to "Upgrade to iTunes Media organization." This updates the file organization of your iTunes Media folder.
    Click OK.
    Note: If you originally did not have the option to copy files enabled, iTunes will copy files outside of the iTunes Media folder from their original locations to the iTunes Media folder. To save space on your hard disk, you might want to delete the original files after confirming they have been moved and are backed up.
    Copy iTunes folder to your external hard drive
    To copy all the items in your iTunes library (including the iTunes Library file that holds all your playlists, playcounts, ratings, and other data) to your external hard drive, follow these steps:
    Quit iTunes.
    Locate your external hard drive.
    Mac: On the desktop or Finder sidebar.
    Windows: In My Computer
    Locate your iTunes folder:
    By default, the iTunes folder is located in:
    Mac OS X: /Users/username/Music
    Windows XP: \Documents and Settings\username\My Documents\My Music\
    Windows Vista: \Users\username\My Music\
    Windows 7 or 8: \Users\username\Music\
    If the iTunes folder is not in the default location listed above then you can find where the iTunes folder is located by following these instructions:
    Open your iTunes Preferences:
    Mac: Choose iTunes > Preferences.
    Windows: Choose Edit > Preferences.
    Click Advanced.
    The location of your iTunes folder will be listed in iTunes Media folder location box, as pictured below.
    Drag the iTunes folder to your external hard drive. This can take a while if you have a lot of items.
    When the transfer is complete, your iTunes Library will have been successfully copied to your external hard drive.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • HT2470 how would i go about taking multiple files from documents and make them part of 1 master file

    how would i go about taking multiple files from documents and make them into 1 master file? I want to put all documents associated with this project together for easier access.

    From the finder window, click File, click new folder, you can drag all documents into that Folder making it the master folder. You can ajso drag folders into the Master folder, and have them as sub-folders if you wish to  do that. Either way they will all be in one master folder.

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    How do I get the pictures folders in photoshop 7 out of My window XP computer and put them into my new computer windows 8 photoshop12

    I am so sorry for you and your situation. Were you using iCloud photostream?
    Otherwise I do not see any chance for your precious photos.
    Congrats anyway on the little darling!

  • Get All images from a website and put them in a listbox.

    Hi Everyone, I am new to Java Programming.
    I wanted to know if there is a way to get all the images in a website and put them in a listbox. And if an item is clicked in list box, view it in a picturebox.

    Harsimran_Singh wrote:
    what is the whole idea about .Net vs. Java...guys, .NET users are so friendly and helpful, they don't even judge english
    This is not putting a good impression of Java Users on me.good luck with .net. im sorry that things didnt work out with java.
    unfortunately, .net is essentially a clone of java so you may find that you will be looking
    to learn exactly the same things but for an expensive propriety platform.
    if you change your mind, read:
    [swing tutorials|http://java.sun.com/docs/books/tutorial/uiswing/]
    jlist
    listcellrenderer
    [list tutorial|http://java.sun.com/docs/books/tutorial/uiswing/components/list.html]
    [advanced list programming|http://java.sun.com/products/jfc/tsc/tech_topics/jlist_1/jlist.html]
    on your way out thank the moderators : )

  • I made 2 playlists on Itunes and put them on my Ipod.  How do I get the songs to play consecutively and not keep playing the same song over and over again???

    I'm a new Zumba instructor and have to come up with playlists for my routines.  I made 2 playlists on ITunes and put them on my Ipod.  Everytime I want to play it, only one song from the list plays over and over.  The other songs do not.  How do I get the songs to play the way I have them set up??

    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For other music you need to get them from where you got them before.

  • How do you Take songs from one iTunes library and put them on another(Mac)

    Well i have some songs that i don't really listen to anymore so i don't want them on my library or any of my ipods but i don't want to delete them because i bought them so i want to put them on another itunes library i created but i cant figure out how to take them out of my library and put them on the other one
    how do you do that?

    Open your other library, go to File>Add to library and navigate to the folder containing the files you want to add. Once they are in your new library delete them from the other library making sure that when you get the prompt to move them to trash say no. You should also back your purchases up to disc or to an external drive so you don't lose them of anything happens to your hard drive:
    How to back up your media in iTunes
    Back up your iTunes library by copying to an external hard drive

  • I have a windows computer. How can I create apps and put them on itunes?

    I have a windows computer. How can I create apps and put them on itunes?

    You can't. The iOS SDK requires Mac OS X and an Intel Mac; Windows applications can't be put on either the iOS or Mac OS X App Stores.
    (82889)

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • I've been taking screen shots for years and opening them from my desktiop. Suddenly, today, I've lost the ability to open them. I can right click on the picture and do "quicklook", but that's it. They just won't open.   Similary, if I scan an image and sa

    I've been taking screen shots for years and opening them from my desktiop. Suddenly, today, I've lost the ability to open them. I can right click on the picture and do "quicklook", but that's it. They just won't open.
    Similary, if I scan an image and save it as a PDF file in pictures, I'm suddenly not able to open it either!
    Why?

    Move the com.apple.screencapture.plist file out of /username/Library/Preferences/ to the Desktop, log out and back in, and try again.
    BTW, use the default 10 point setting for text. Your choice just wastes screen space.

  • HT5129 I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event, it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    I had photos from MobileMe organized into different events.  When iPhoto made a MobileMe event (when MobileMe ended), it took all of those photos out of the other events and put them all together in the new "from MobileMe" event.  Is there any way to reverse this?

    Only to load your backup from before downloading the MM photos
    LN

  • Can I move all my photo that I can see on iPhoto from my Mac hardrive and put them on an external hard drive and still be able to see them as thumbnails in iPhoto? Thanks! The reason, I need to know if I can do this is b/c I am running out of HD space!sp

    can I move all my photo that I can see on iPhoto from my Mac hardrive and put them on an external hard drive and still be able to see them as thumbnails in iPhoto? Thanks! The reason, I need to know if I can do this is b/c I am running out of HD space!sp

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

Maybe you are looking for

  • Opening .pdf files in Firefox 3.6.13 spawns "infinite" tabs -- amazing!

    If I click a link to a .pdf file, Firefox will open up tab after tab after tab -- they go shooting across the top of the tab bar (it's incredible). I can use Task Manager to force FF to quit (and then manually end the Firefox.exe process since it doe

  • Query regarding translation in module pool

    Hi ppl, I have created a module pool program which has a screen with a number of screen elements. Now, I have translated the texts of the fields into oher languages also (using GOTO-> Translation through the program). My doubt is that will the transl

  • Can you tell me what is the function modue to get POPUP box

    Hi Folks, can you tell me what is the function module to get the POPUP box. Thanks in Advance, Lakshmi

  • Illustrator variables xml converter

    I had a nightmare at one time trying to convert a excel file to a .xml compatible with the variables palette. So we we designed a little program converting a .csv file to .xml based on the template provided by Illustrator. If we get enough requests,

  • Upgrading ipodTouch to software version 2.1

    I downloaded 2.1 from the iTunes store onto my Mac Book. I connected my iPod Touch to my Mac Book to initiate the update on my iPodTouch. There is a warning alert that advises me that if I proceed, "all the data on the iPod will be lost." Since when