I have been written a program with MATLAB:
- clear all; clc
- load data.dat
- a=data+2;
- b=fun(a);
- sim(‘new_equ2’)
- c=b+A;
- save new_data c -ascii
--> my program 开发者_如何学JAVAhas been saved by name “test.m”
In line 4: ‘fun’ is a function.
In line 5: ‘new_equ2’ is a simulink model.
In line 6: ‘A’ is simulink model output.
I wanted to build execute file from test.m, therefore i wrote in command window:
mcc -m test
After that, i ran test.exe in windows command prompt. I encountered with this error:
“Undefined function or method ‘sim’ . . . “
I want to create execute file from test.m that it runs without error.
Simulink, including the sim command, is not supported by MATLAB Compiler.
Ineligible Programs with MATLAB Compiler
精彩评论