|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
> 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.
> Drew Baughman
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