displays an error message of a program that doesn't exist

3 ビュー (過去 30 日間)
Aditya
Aditya 2022 年 10 月 28 日
回答済み: Shivani Dixit 2022 年 10 月 31 日
Whenever I try to run the program, this window pops up. Please help.
Execution of script InputExampleCircle as a function is not supported:
/MATLAB Drive/InputExampleCircle.m
Error in LiveEditorEvaluationHelperEeditorE4670720 (line 3)
r=input("Enter the radius of the circle to be constructed :")
  1 件のコメント
DGM
DGM 2022 年 10 月 28 日
編集済み: DGM 2022 年 10 月 28 日
When you try to run what program?
The code is somewhere calling a script file as a function, but nobody here has actually seen the code. You'd have to attach the script you're trying to run for anyone to troubleshoot it.

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

採用された回答

Shivani Dixit
Shivani Dixit 2022 年 10 月 31 日
Hi Aditya,
I understand that you are facing issue in execution of the script "InputExampleCircle" in MATLAB.
The most probable reason for the issue is because of the presence of a user created script file. Calling the script as some function name interferes with the calling of built-in function of MATLAB.
For better understanding of the issue please consider the following example:
If I create a script file as "delete.m" and run it, MATLAB will throw the same error "Execution of script delete as a function is not supported". In this case, you need to rename your "delete.m" to some other name to avoid the name conflict.
To understand your query better, you can share a dummy code file to understand the exact cause of this issue.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by