|
This is a pre-processed version of the web page http://info-igor.org/IgorMessages/2019/05/Info-Igor_2019-05_0020.html. In this copy, the search terms dsites.com (0) have been highlighted to make them easier to find. If a search term was not found, then it may exist in the non-visible title, description, keywords or URL fields, or the contents of this document may have changed since it was indexed. Some web pages will not display properly in this pre-processor. Visit those pages directly by following this link. Visit the page itself before bookmarking it. The search engine that brought you here is not necessarily affiliated with, nor responsible for, the contents of this page. |
Subject: sound wave import
In-Reply-To: <a3c0cf54-a750-784d-85ed-8e58e1d0243e@colostate.edu>
References: <a3c0cf54-a750-784d-85ed-8e58e1d0243e@colostate.edu>
Message-ID: <69ab93601ae246ba9b5d1dd76623a14b@rivm.nl>
Joseph,
Assuming wcmplx is the complex wave the data should go to and wdata is your two-dimensional real wave, this command will do the trick:
wcmplx = cmplx(wdata[p][0], wdata[p][1])
Best wishes,
Stijn
> -----Original Message-----
> From: Info-igor [mailto:info-igor-bounces at lists.info-igor.org] On Behalf Of
> DiVerdi,Joseph
> Sent: zondag 26 mei 2019 19:41
> To: Igor Discussion List
> Subject: sound wave import
>
> Greetings,
>
> I'm working on a project where I import .wav files (into IP, of course). These wavs
> represent complex (I & Q) data and that's the was I intend to use them. However, the
> default sound import dialog populates a two-dimensional real wave (with two columns).
>
> I'd like to know if there is a "shortcut" method to convert such a two-dimensional real
> wave (with two columns) into a complex wave with the zeroth column populating the
> reals and first column similarly populating the imaginaries. I appreciate I can write it
> out the long way - just hoping for a slicker one.
>
> Best regards,
> Joseph
> --
> Joseph A. DiVerdi, PhD, MBA
> Associate Professor of Chemistry
> Colorado State University, Fort Collins, CO, USA
> +1.970.980.5868 - http://sites.chem.colostate.edu/diverdi
>
> _______________________________________________
> Info-igor mailing list
> Info-igor at lists.info-igor.org
> http://lists.info-igor.org/listinfo.cgi/info-igor-info-igor.org
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is verzonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. Het RIVM aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
www.rivm.nl<http://www.rivm.nl/> De zorg voor morgen begint vandaag
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. RIVM accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
www.rivm.nl/en<http://www.rivm.nl/en> Committed to health and sustainability