Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

can't fopen????

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
liu I-YIN - 22 Jul 2008 04:00 GMT
hi all,
  I used matlab 14.4 to transfer M-file to c code.
The original M-file is            
fid = fopen('tx_para.txt','r')   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

Due to matlab 14.4, I can not export every M-file to C-
file by one-one mapping. I can only export the top.m,
which means I can not really “see” the get_tdv_params
after transfer /_\
How should I do?
Walter Roberson - 22 Jul 2008 17:43 GMT
>   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')   It works
[quoted text clipped - 5 lines]
>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.

Signature

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

liu I-YIN - 23 Jul 2008 11:17 GMT
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g652no$elr$1@canopus.cc.umanitoba.ca>...

> >   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?
 I change it to matlab 2006b, glibc 2.3.3.
 but it still doesn't work.
 the way I transfre the M-file is like
 mcc -I /code
     -I /matlab/2006b/toolbox
     -I /matlab/2006b/extern/include
     -W lib:libmatlab -T link:lib /code/top.m
     -f my_mbuildopt.sh
 

> >The original M-file is            
> >fid = fopen('tx_para.txt','r')  &#61671; It works
[quoted text clipped - 14 lines]
> fopen line 16 is normally a comment line, part of the 'help' description
> of fopen.

 chceked.
 
 the fopen is bulit-in function /__\
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.