I am writing APPdesigner in Matlab2017B.When I debug, it shows 'D:\My_program\register1.mlapp: Can't open file',without anyother warning.
It's on the first line, in the ‘APP Designer-Code View'.
How do I get my code to run again?
When I drag my mlapp file directly into the Command Window,
it shows the Detail:
Error using which
D:\My_program\register1.mlapp: Can't open file.
Error in run (line 55)
pathscript = evalin('caller', strcat('which(''', script, ''')'));

1 件のコメント

Walter Roberson
Walter Roberson 2020 年 6 月 23 日
Please show the output of
[status, values] = fileattrib('D:\My_program\register1.mlapp')

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

回答 (1 件)

Danuanping
Danuanping 2020 年 6 月 23 日

1 投票

Finally I found out what the problem was!!!!!!!!
I'm sure my code will be fine.So I delete all the comments and the code works again.
We used "IF" in the comment and the compiler will still match it with an "END", which I think is a Buuuuuuuug.
No matter how I modify a comment that starts with an "IF" it doesn't work, even if I put an "END" in the comment.
So I don't think you can comment lines that contain an if in the "MLAPP" file. I'm looking forward to the official fix
So just delete the comments. It works

1 件のコメント

Thuc
Thuc 2024 年 4 月 26 日
help me huhu

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

カテゴリ

ヘルプ センター および File ExchangeExternal Language Interfaces についてさらに検索

質問済み:

2020 年 6 月 22 日

コメント済み:

2024 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by