Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to run exe. file from matlab
Date: Mon, 22 Jul 2013 18:41:07 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 78
Message-ID: <ksjuc3$6r0$1@newscl01ah.mathworks.com>
References: <krl8s6$nak$1@newscl01ah.mathworks.com> <kshbf2$nji$1@newscl01ah.mathworks.com> <kshqoa$pel$1@newscl01ah.mathworks.com> <ksiqmg$2b9$1@newscl01ah.mathworks.com> <ksj77p$siq$1@newscl01ah.mathworks.com> <ksj9tn$68p$1@newscl01ah.mathworks.com> <ksjsjv$1qk$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1374518467 7008 172.30.248.37 (22 Jul 2013 18:41:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Jul 2013 18:41:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2843827
Xref: news.mathworks.com comp.soft-sys.matlab:799741

Yes 

system('datcom.exe < myfile')

exectuted in the directory containing datcom, myfile and EX1.INP

 generates a file datcom.out (contents shown below).



  ****************************************************
  *    USAF STABILITY AND CONTROL  DIGITAL DATCOM    *
  *    PROGRAM REV. JAN 96   DIRECT INQUIRIES TO:    *
  *    WRIGHT LABORATORY  (WL/FIGC)  ATTN: W. BLAKE  *
  *      WRIGHT PATTERSON AFB, OHIO  45433           *
  *    PHONE (513) 255-6764,   FAX (513) 258-4054    *
  ****************************************************
1                         CONERR - INPUT ERROR CHECKING
0 ERROR CODES - N* DENOTES THE NUMBER OF OCCURENCES OF EACH ERROR
0 A - UNKNOWN VARIABLE NAME
0 B - MISSING EQUAL SIGN FOLLOWING VARIABLE NAME
0 C - NON-ARRAY VARIABLE HAS AN ARRAY ELEMENT DESIGNATION - (N)
0 D - NON-ARRAY VARIABLE HAS MULTIPLE VALUES ASSIGNED
0 E - ASSIGNED VALUES EXCEED ARRAY DIMENSION
0 F - SYNTAX ERROR

0******************************  INPUT DATA CARDS  ******************************

  $FLTCON NMACH = 1.0, MACH(1)=0.60, NALPHA = 11.0,                              
          ALSCHD(1) = -6.0, -4.0, -2.0, 0.0, 2.0,                                
                       4.0, 8.0, 12.0, 16.0, 20.0, 24.0,                         
          RNNUB=4.28E6$                                                          
  $OPTINS SREF=8.85, CBARR=2.48, BLREF=4.28$                                     
  $SYNTHS XCG=4.14, ZCG=-0.20$                                                   
  $BODY NX = 10.0,                                                               
    X(1)=0.0,0.258,0.589,1.260,2.260,2.590,2.930,3.590,4.570,6.260,              
    R(1)=0.0,0.186,0.286,0.424,0.533,0.533,0.533,0.533,0.533,0.533,              
    S(1)=0.0,0.080,0.160,0.323,0.751,0.883,0.939,1.032,1.032,1.032,              
    P(1)=0.0,1.00,1.42,2.01,3.08,3.34,3.44,3.61,3.61,3.61$                       
  $BODY BNOSE=1.0, BLN=2.59, BLA=3.67$                                           
 CASEID APPROXIMATE AXISYMMETRIC BODY SOLUTION, EXAMPLE PROBLEM 1, CASE 1        
 SAVE                                                                            
 DUMP CASE                                                                       
 NEXT CASE                                                                       
  $BODY ZU(1)= -.595,-.476,-.372,-.138, .200,                                    
                .334, .343, .343, .343, .343,                                    
        ZL(1)= -.595,-.715,-.754,-.805,-.868,                                    
               -.868,-.868,-.868,-.868,-.868$                                    
 CASEID ASYMMETRIC (CAMBERED) BODY SOLUTION, EXAMPLE PROBLEM 1, CASE 2           
 SAVE                                                                            
 NEXT CASE                                                                       
  $FLTCON NMACH=3.0, MACH(1)=0.9,1.4,2.5, RNNUB=6.4E6, 9.96E6, 17.0E6$           
 SAVE                                                                            
 CASEID ASYMMETRIC (CAMBERED) BODY SOLUTION, EXAMPLE PROBLEM 1, CASE 3           
 NEXT CASE                                                                       
  $FLTCON NMACH=1.0, MACH(1)=2.5, RNNUB=17.86E6, HYPERS=.TRUE.$                  
  $BODY DS=0.0$                                                                  
 CASEID HYPERSONIC BODY SOLUTION,  EXAMPLE PROBLEM 1, CASE 4                     
 NEXT CASE                                                                       
1          THE FOLLOWING IS A LIST OF ALL INPUT CARDS FOR THIS CASE.
0
  $FLTCON NMACH = 1.0, MACH(1)=0.60, NALPHA = 11.0,                              
          ALSCHD(1) = -6.0, -4.0, -2.0, 0.0, 2.0,                                
                       4.0, 8.0, 12.0, 16.0, 20.0, 24.0,                         
          RNNUB=4.28E6$                                                          
  $OPTINS SREF=8.85, CBARR=2.48, BLREF=4.28$                                     
  $SYNTHS XCG=4.14, ZCG=-0.20$                                                   
  $BODY NX = 10.0,                                                               
    X(1)=0.0,0.258,0.589,1.260,2.260,2.590,2.930,3.590,4.570,6.260,              
    R(1)=0.0,0.186,0.286,0.424,0.533,0.533,0.533,0.533,0.533,0.533,              
    S(1)=0.0,0.080,0.160,0.323,0.751,0.883,0.939,1.032,1.032,1.032,              
    P(1)=0.0,1.00,1.42,2.01,3.08,3.34,3.44,3.61,3.61,3.61$                       
  $BODY BNOSE=1.0, BLN=2.59, BLA=3.67$                                           
 CASEID APPROXIMATE AXISYMMETRIC BODY SOLUTION, EXAMPLE PROBLEM 1, CASE 1        
 SAVE                                                                            
 DUMP CASE                                                                       
 NEXT CASE                                                                       
0 INPUT DIMENSIONS ARE IN FT, SCALE FACTOR IS 1.0000