フィルターのクリア

How to run a .p file?

19 ビュー (過去 30 日間)
Sarah Ghosh
Sarah Ghosh 2013 年 8 月 9 日
I created a .p file from a .m file. However, when I click on open in the toolbar of the command window, error occurs ,saying that: Error using => open at 146 .M file associated with file_name not found.
Also, when I click on the .p file in the folder, the MATLAB command window opens but the file is not executed. I have to type filename.p explicitly in the command window again to run the file. Even then I get the error saying
???Attempt to reference field of non-structure array
Can anyone help? Thanks in advance.

採用された回答

Walter Roberson
Walter Roberson 2013 年 8 月 9 日
Start if from the command line without the .p (or .m). Call it the same way you would have called the corresponding .m
For example,
timestwo(17)
would be the syntax no matter if you are using timestwo.m or timestwo.p

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by