Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!newsfeed.stanford.edu!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: can't fopen????
Date: Tue, 22 Jul 2008 16:43:36 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 31
Message-ID: <g652no$elr$1@canopus.cc.umanitoba.ca>
References: <g63ifm$rug$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1216745016 15035 192.70.172.160 (22 Jul 2008 16:43:36 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 22 Jul 2008 16:43:36 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:481018



In article <g63ifm$rug$1@fred.mathworks.com>,
liu I-YIN <iliu@atheros.com> wrote:

>   I used matlab 14.4 to transfer M-file to c code.

I'm not sure what you mean by that. Do you mean that you
used the Matlab Compiler ? If so, then which release of the Matlab
Compiler?

>The original M-file is             
>fid = fopen('tx_para.txt','r')  &#61671; It works 
>   But after it transfer to c code, it shows error:
>??? Undefined function or method 'deploywhich' for input 
>argument of type 'char'.
>Error in = = > fopen at 16
>Error in = = > get_tdv_params at 230
>Error in = = > tdv at 61
>Error in = = > top at 12

Please use

which fopen

to be sure that you are getting the built-in fopen and not 
a user-defined function that happens to be named fopen.
fopen line 16 is normally a comment line, part of the 'help' description
of fopen.

-- 
  "I like to build things, I like to do things. I am having
  a lot of fun."                              -- Walter Chrysler