Matlab error message needs help

  • Context: MATLAB 
  • Thread starter Thread starter lcc118
  • Start date Start date
  • Tags Tags
    Error Matlab
Click For Summary
SUMMARY

The forum discussion addresses an error encountered while running a SIMULINK model using a Matlab M-function, specifically the message indicating that 'Nov20_model_sfun.bat' is not recognized as a command. The user, Henry, suggests that the issue may stem from the software failing to create the temporary batch file due to an unreported error or permission issues. The community is encouraged to verify the existence of the batch file and check for any underlying errors or permission settings that may prevent its creation.

PREREQUISITES
  • Understanding of SIMULINK modeling in MATLAB
  • Familiarity with MATLAB M-functions
  • Basic knowledge of batch file execution in Windows
  • Experience with troubleshooting software errors
NEXT STEPS
  • Investigate MATLAB error handling techniques
  • Learn about file permissions in Windows operating systems
  • Explore the process of creating and executing batch files in MATLAB
  • Review SIMULINK model configuration and dependencies
USEFUL FOR

MATLAB users, SIMULINK modelers, and software developers troubleshooting batch file execution errors in Windows environments.

lcc118
Messages
1
Reaction score
0
Hi all,
I am running a SIMULINK model using a Matlab M-function and found an error message which I cannot handle.
Can anyone give some suggestions for possible solution:

The error message is as follows:

[
Making simulation target "Nov20_model_sfun", ...


'Nov20_model_sfun.bat' is not recognized as an internal or external command,
operable program or batch file.
]

many thanks
Henry
 
Physics news on Phys.org
This is a complete stab in the dark. But my wild guess is that the software is creating a temporary batch file (Nov20...bat) and then trying to run it. When it tries to run it, the file isn't there.

It could be not there because some unreported error ocurred while trying to create it. or it could be permissions. Check if it's there.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
8K