LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2011, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 29 Aug 2011 14:01:58 -0400
Reply-To:   John Birken <zbq5@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Birken <zbq5@CDC.GOV>
Subject:   Re: Need to convert MATLAB code to SAS code
Content-Type:   text/plain; charset=ISO-8859-1

> From: Baughman, Drew (CDC/CGH/DGHA) > Sent: Saturday, August 27, 2011 5:18 PM > To: CDC_SAS@LISTSERV.CDC.GOV > Subject: Need to convert MATLAB code to SAS code > > Hi, > > I have a smallish MATLAB program with some while/end statements for > looping, and I am unfamiliar with MATLAB. > > I would like help converting this MATLAB code to SAS code because the > rest of my programming tasks for solving my analysis problem are coded > in SAS. > > If you can help me with this, please let me know. > > Thanks, > Drew Baughman

Drew: There are a couple of ways to suffice your needs. There is a matlab package that writes excel which readily imports into SAS and vice versa. MATLAB can output txt, csv and many others which will import into SAS. There copies of the MATLAB excel package at CDC Atlanta I recall the topic being covered in one of the yearly SAS symposiums. Here’s the classic 5* article on doing it:

The Twain Shall Meet: Facilitating Data Exchange between SAS and Matlab http://www.mathworks.com/matlabcentral/fileexchange/13069

http://blogs.sas.com/iml/index.php?/archives/103-Translating-a-MATLAB- Program-into-the-SASIML-Language-A-Case-Study.html

HTH, John, jbirken@cdc.gov


Back to: Top of message | Previous page | Main SAS-L page