フィルターのクリア

Using MATLAB P-code files

1 回表示 (過去 30 日間)
Hussain Hayat
Hussain Hayat 2015 年 8 月 2 日
編集済み: Stephen23 2015 年 8 月 3 日
How do I use MATLAB p-code files. I cannot open them neither do they run using command line. Im doing an online MATLAB course at coursera and the file is supposed to generate a code so I can check whether my answer is correct. It gives the following error (enclosed in brackets)
[??? Error: File: hw3.p Line: 183 Column: 0
Expression or statement is incomplete or incorrect]
How do I use it? Ive added the file to the current working directory. But its still not running.
I'm running MATLAB 2009a. Can this be an issue with the version Im using. Is it too outdated?
  2 件のコメント
Geoff Hayes
Geoff Hayes 2015 年 8 月 2 日
Hussain - you should be able to use the p file in the same way as you would any MATLAB m file that you have created - just add it to the current working directory (like you have done) and try to run it. In your case, the error could have to do with the fact that your version of MATLAB is incompatible with the file that your professor has generated. Check with the other students in the class to see if they are having a similar problem with the file.
Hussain Hayat
Hussain Hayat 2015 年 8 月 3 日
Okay thanks a lot. :)

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

採用された回答

Jan
Jan 2015 年 8 月 2 日
編集済み: Stephen23 2015 年 8 月 3 日
As Geoff has mentioned already, the error message means, that your Matlab 2009a cannot parse the file correctly in the line 183, column 0.
Version 2009a could not handle the ~ operator to omit outputs of functions. But I cannot imagine, how this could appear in column 0 .
The only solution is to ask your professor for a clean version of the P-file. Forward him the error message.
  1 件のコメント
Hussain Hayat
Hussain Hayat 2015 年 8 月 3 日
Okay thanks :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by