フィルターのクリア

compiled version of m file "has invalid content" ?

1 回表示 (過去 30 日間)
Amanda
Amanda 2015 年 7 月 28 日
コメント済み: Walter Roberson 2015 年 7 月 30 日
I have an m file that runs when called from another function at the Matlab command line. When I compile the code, I get no errors. But, when I run the generated executable from a DOS command window, I get an error saying the m file 'has invalid content. Details: 'file is closed. failbit is set.'
Any ideas of what the problem is and how it can be fixed?
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 7 月 28 日
Is polyspace involved?

サインインしてコメントする。

回答 (1 件)

Udaya Mallampati
Udaya Mallampati 2015 年 7 月 30 日
Hi Walter,
The following questions help to better understand the reasons for this issue:
  • Can you execute the code from MATLAB without any errors?
  • What is the m file? Is it a script or a function? If it is a function, what are the input arguments to it? What is the output?
  • What is the purpose of the m file?
  • Are you running the executable from the same machine or is it a different machine?
Thanks,
Udaya.
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 7 月 30 日
I don't know the answers to those, the original poster Amanda would know.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by